Skip to content

Commit 4c3d197

Browse files
committed
modify hist fund quote param
1 parent d8f92ae commit 4c3d197

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tigeropen/examples/quote_client_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def test_get_fund_quote(self):
305305
close = float(result.iloc[0]['close'])
306306

307307
def test_get_fund_history_quote(self):
308-
result = openapi_client.get_fund_history_quote(['IE00B11XZ988.USD', 'LU0476943708.HKD'])
308+
result = openapi_client.get_fund_history_quote(['LU0476943708.HKD'], begin_time=1691337600000, end_time=1691596800000)
309309
print(result)
310310
print(result.loc[result['symbol']=='LU0476943708.HKD'].iloc[0]['nav'])
311311

tigeropen/quote/quote_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ def get_fund_quote(self, symbols):
16991699
else:
17001700
raise ApiException(response.code, response.message)
17011701

1702-
def get_fund_history_quote(self, symbols, begin_time=None, end_time=None, limit=None):
1702+
def get_fund_history_quote(self, symbols, begin_time, end_time, limit=None):
17031703
params = MultipleQuoteParams()
17041704
params.symbols = symbols if isinstance(symbols, list) else [symbols]
17051705
params.begin_time = begin_time

0 commit comments

Comments
 (0)