Skip to content

Commit 4756d4a

Browse files
authored
Add files via upload
1 parent 77d0a43 commit 4756d4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fmz.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ def GetOrders(self, symbol=''):
923923
EOF()
924924

925925
def GetHistoryOrders(self, symbol='', since=0, limit = 0):
926+
if isinstance(symbol, int):
927+
limit = since
928+
since = symbol
929+
symbol = ''
926930
r_len = ctypes.c_uint(0)
927931
buf_ptr = ctypes.c_void_p()
928932
ret = self.lib.api_Exchange_GetHistoryOrders(self.ctx, self.idx, safe_str(symbol), ctypes.c_longlong(since), ctypes.c_longlong(limit), ctypes.byref(r_len), ctypes.byref(buf_ptr))
@@ -1422,7 +1426,7 @@ def __init__(self, task = None, autoRun=False, gApis = None, progressCallback=No
14221426
js = os.path.join(tmpCache, crcFile)
14231427
if os.path.exists(js):
14241428
b = open(js, 'rb').read()
1425-
if os.getenv("BOTVS_TASK_UUID") is None or "ea0c3a2ff52fe179546c3bd384452b26" in str(b):
1429+
if os.getenv("BOTVS_TASK_UUID") is None or "2df15a2ebab9de388fd876ce12e5c2f1" in str(b):
14261430
hdic = json_loads(b)
14271431
loader = os.path.join(tmpCache, soName)
14281432
update = False

0 commit comments

Comments
 (0)