Skip to content

Commit 5944b68

Browse files
committed
Fix func is_ucp_client
1 parent 3d0f1a5 commit 5944b68

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

quik_python/functions/order_functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def on_trans_reply_handler(trans_reply: TransactionReply):
118118
try:
119119
res = await self._quik.trading.send_transaction(new_order_transaction)
120120
await asyncio.sleep(0.5) # Ждем 500ms как в оригинальном коде
121-
##?? print(f"res: {res}")
122121
except Exception:
123122
# ignore - как в оригинальном коде
124123
pass

quik_python/functions/service_functions.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,3 @@ async def del_all_labels(self, tag: str) -> bool:
203203
"""
204204
result = await self.call_function("delAllLabels", tag)
205205
return result['data'] or False
206-
207-
208-
# def initialize_correlation_id(self, start_correlation_id: int) -> None:
209-
# """Инициализировать идентификатор корреляции.
210-
211-
# Args:
212-
# start_correlation_id (int): Начальный идентификатор корреляции.
213-
# """
214-
# self.service.initialize_correlation_id(start_correlation_id)
215-
216-

quik_python/functions/trading_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ async def is_ucp_client(self, firm_id: str, client: str) -> bool:
446446
Returns:
447447
True, если клиент является единым клиентом
448448
"""
449-
result = await self.call_function("isUcpClient", firm_id, client)
449+
result = await self.call_function("IsUcpClient", firm_id, client)
450450
return result.get('data', False) if result else False
451451

452452

0 commit comments

Comments
 (0)