kwess 0.0.6__py3-none-any.whl → 0.0.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kwess/__init__.py CHANGED
@@ -35,7 +35,7 @@ class Trader:
35
35
  - server_type could be 2 possible values: "live" or "test". "live" will allow you to
36
36
  interact with your real Questrade account. "test" is for interacting with your test
37
37
  account.
38
- - timeout number of seconds to wait for the API server to respond before giving up.
38
+ - timeout number of seconds to wait for the server to respond before giving up.
39
39
  Defaults to 15 seconds. Set timeout to None if you wish to wait forever for a response.
40
40
  - verbose level of verbosity represented by the number of characters in a string.
41
41
  Defaults to empty string. Maximum verbosity is 1 or "v".
@@ -88,7 +88,7 @@ class Trader:
88
88
  def get_new_refresh_token(self, token, verbose=''):
89
89
  """
90
90
  Description:
91
- Obtains a new refresh token (and new access token) from the API server.
91
+ Obtains a new refresh token (and new access token) from the Authorization server.
92
92
  You generally would not need to call this method, as it is potentially called by Trader
93
93
  during initialization.
94
94
  Trader will only call this method if the access token has expired.
@@ -231,8 +231,8 @@ class Trader:
231
231
  datetime objects.
232
232
  Parameters:
233
233
  - startdatetime datetime object specifying the start of a range.
234
- - enddatetime optional datetime object specifying the end of a range. Defaults to
235
- now (datetime.datetime.now()) if not specified.
234
+ - enddatetime optional datetime object specifying the end of a range.
235
+ Defaults to now (datetime.datetime.now()) if not specified.
236
236
  - accounttype type of Questrade account. Defaults to "tfsa".
237
237
  - verbose level of verbosity represented by the number of characters in a string.
238
238
  Defaults to empty string. Maximum verbosity is 3 or "vvv".
@@ -334,7 +334,7 @@ class Trader:
334
334
  Description:
335
335
  Higher level helper method used to build a Questrade datetime string.
336
336
  Parameters:
337
- - adatetime a datetime object.
337
+ - adatetime a datetime object. Defaults to now.
338
338
  - gmt optional boolean indicating if datetime is Greenwich Mean Time.
339
339
  Default value is False.
340
340
  Returns:
@@ -454,7 +454,7 @@ class Trader:
454
454
 
455
455
 
456
456
  @get_all
457
- def get_account_executions(self, accounttype="TFSA", startdatetime=None, enddatetime=None, verbose=''):
457
+ def get_account_executions(self, startdatetime, enddatetime=None, accounttype="TFSA", verbose=''):
458
458
  """
459
459
  Description:
460
460
  Generator that provides account executions from the account related to account type
@@ -588,7 +588,7 @@ class Trader:
588
588
 
589
589
 
590
590
  @get_all
591
- def get_market_candles(self, sid, interval, startdatetime=None, enddatetime=None, verbose=''):
591
+ def get_market_candles(self, sid, interval, startdatetime, enddatetime=None, verbose=''):
592
592
  """
593
593
  Description:
594
594
  Provides a list of json formatted market candles.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kwess
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: Questrade API wrapper.
5
5
  Home-page: https://github.com/kaiyoux/kwess
6
6
  Author: Issa Lompo
@@ -56,6 +56,7 @@ for acc in accs:
56
56
  print(acc, "\n")
57
57
 
58
58
  # Get (all types of) TFSA account orders from 17/8/2022 to now
59
+ # Questrade does not seem to keep old account orders - only the most recent
59
60
  accs = qs.get_account_orders(startdatetime=dt(year=2022, month=8, day=17), \
60
61
  verbose="vv")
61
62
  for acc in accs:
@@ -159,7 +160,7 @@ Parameters:
159
160
  - server_type could be 2 possible values: "live" or "test".
160
161
  "live" will allow you to interact with your real Questrade account.
161
162
  "test" is for interacting with your test account.
162
- - timeout number of seconds to wait for the API server to respond before
163
+ - timeout number of seconds to wait for the server to respond before
163
164
  giving up.
164
165
  Defaults to 15 seconds. Set timeout to None if you wish to wait forever
165
166
  for a response.
@@ -173,7 +174,7 @@ build_datetime_string(self, adatetime=None, gmt=False)
173
174
  Description:
174
175
  Higher level helper method used to build a Questrade datetime string.
175
176
  Parameters:
176
- - adatetime a datetime object.
177
+ - adatetime a datetime object. Defaults to now.
177
178
  - gmt optional boolean indicating if datetime is Greenwich Mean Time.
178
179
  Default value is False.
179
180
  Returns:
@@ -222,8 +223,8 @@ Returns:
222
223
  Account balances as a Python object representation of the returned json.
223
224
 
224
225
 
225
- get_account_executions(self, accounttype='TFSA', startdatetime=None,
226
- enddatetime=None, verbose='')
226
+ get_account_executions(self, startdatetime, enddatetime=None,
227
+ accounttype='TFSA', verbose='')
227
228
  Description:
228
229
  Generator that provides account executions from the account related to
229
230
  account type accounttype, between the range specified by startdatetime and
@@ -304,7 +305,7 @@ Yields:
304
305
  json.
305
306
 
306
307
 
307
- get_market_candles(self, sid, interval, startdatetime=None, enddatetime=None,
308
+ get_market_candles(self, sid, interval, startdatetime, enddatetime=None,
308
309
  verbose='')
309
310
  Description:
310
311
  Provides a list of json formatted market candles.
@@ -380,7 +381,7 @@ Returns:
380
381
 
381
382
  get_new_refresh_token(self, token, server_type, verbose='')
382
383
  Description:
383
- Obtains a new refresh token (and new access token) from the API server.
384
+ Obtains a new refresh token (and new access token) from the Authorization server.
384
385
  You generally would not need to call this method, as it is potentially called by
385
386
  Trader during initialization.
386
387
  Trader will only call this method if the access token has expired.
@@ -0,0 +1,7 @@
1
+ kwess/__init__.py,sha256=hG0J_zyNPRCVd-_VEbg9a26HvtfcbdnkUHpRJ0PhyGI,43967
2
+ kwess-0.0.7.dist-info/LICENSE.txt,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
3
+ kwess-0.0.7.dist-info/METADATA,sha256=MbNWz6np_171fBoycthEz60AQ7kqj3APbDS7sykUpH0,19940
4
+ kwess-0.0.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
+ kwess-0.0.7.dist-info/top_level.txt,sha256=jdYzcYQHwnZajr9CyHMIRBi6MrEGYTJ-uaAT3M50kP0,6
6
+ kwess-0.0.7.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
7
+ kwess-0.0.7.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- kwess/__init__.py,sha256=x2-XF-Ny8fma8AyaBzPAtuBso2c8Zfjh4WfGSqJheKU,43954
2
- kwess-0.0.6.dist-info/LICENSE.txt,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
3
- kwess-0.0.6.dist-info/METADATA,sha256=h-LQTwle-0N5AQ_8KJJ0RkQSmgfPHR5a9f2s2CBJrUA,19850
4
- kwess-0.0.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- kwess-0.0.6.dist-info/top_level.txt,sha256=jdYzcYQHwnZajr9CyHMIRBi6MrEGYTJ-uaAT3M50kP0,6
6
- kwess-0.0.6.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
7
- kwess-0.0.6.dist-info/RECORD,,
File without changes