Support Board
Date/Time: Sat, 19 Apr 2025 10:22:41 +0000
Post From: DTC request and response
[2025-03-08 11:19:35] |
Fungraphic72 - Posts: 16 |
I started again from zero and simplified my client to test and Yes! It works, I have a return message. Now I just have to wait until the market is open to see if it returns the data. PS C:\Client_DTC> python CustomDTC_Client.py -n 127.0.0.1 -l -p 11099 -q 11098
INFO:root:Connecting to ws://127.0.0.1:11099 INFO:websocket:Websocket connected INFO:root:On open INFO:root:[CustomDTCClient] post_login_thread => envoi HISTORICAL_TRADES_REQUEST (JSON). INFO:root:[CustomDTCClient] HISTORICAL_TRADES_REQUEST envoyé : {'Type': 10100, 'RequestID': 2222, 'Symbol': 'MESH5', 'TradeAccount': 'PP-CASH.......', 'StartDateTime': 45695.0} INFO:root:[CustomDTCClient] Reçu HISTORICAL_TRADES_RESPONSE : INFO:root:{'ClosedProfitLoss': 0, 'Commission': 0, 'EntryDateTime': 0, 'EntryPrice': 0, 'EntryQuantity': 0, 'ExitDateTime': 0, 'ExitPrice': 0, 'ExitQuantity': 0, 'MaxOpenQuantity': 0, 'MaximumOpenPositionLoss': 0, 'MaximumOpenPositionProfit': 0, 'RequestID': 2222, 'Symbol': 'MESH5', 'TradeAccount': 'PP-CASH.......', 'TradeType': 0, 'Type': 10102} Date Time Of Last Edit: 2025-03-08 11:20:19
|