Skip to content

Commit c8e25e7

Browse files
author
方佳
committed
Merge branch 'main_merge_0726' into 'main'
feat: OpenAPI Unification and batch K Line query See merge request webull/openapi-python-sdk!14
2 parents e763394 + 475551a commit c8e25e7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

webull-python-sdk-core/webullsdkcore/request.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ def __init__(
257257
if version is not None:
258258
self.add_header(hd.VERSION, version)
259259
self._signer_spec = signer_spec
260-
if body_params is not None:
261-
self.set_body_params(body_params)
260+
self.set_body_params(body_params)
262261

263262
def get_signed_header(self, host, app_key, app_secret):
264263
sc.calc_signature(self._header, host, self._action_name, self._params, self._body_params, app_key, app_secret, self._signer_spec)

webull-python-sdk-mdata/webullsdkmdata/request/get_batch_historical_bars_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class BatchHistoricalBarsRequest(ApiRequest):
1919
def __init__(self):
20-
ApiRequest.__init__(self, "/market-data/batch-bars", version='v1', method="POST")
20+
ApiRequest.__init__(self, "/market-data/batch-bars", version='v1', method="POST", body_params={})
2121

2222
def set_symbols(self, symbol):
2323
self.add_body_params("symbols", symbol)

0 commit comments

Comments
 (0)