Hi everyone. I just noticed that some of my MOC orders (placed via API in paper trading mode) did not execute and got canceled. I dug through the logs and found messages of the following form for these orders:
[{'time': '2020-06-02T15:16:01.733084+00:00',
'status': 'PendingSubmit',
'message': ''},
{'time': '2020-06-02T15:16:04.024916+00:00',
'status': 'PreSubmitted',
'message': ''},
{'time': '2020-06-02T19:31:22.503361+00:00',
'status': 'PendingCancel',
'message': ''},
{'time': '2020-06-02T19:31:22.562397+00:00',
'status': 'Cancelled',
'message': ''}]
In contrast, this is a typical log for an order that got filled.
[{'time': '2020-06-02T15:15:22.300838+00:00',
'status': 'PendingSubmit',
'message': ''},
{'time': '2020-06-02T15:16:03.851715+00:00',
'status': 'PreSubmitted',
'message': ''},
{'time': '2020-06-02T19:59:30.099333+00:00',
'status': 'Submitted',
'message': ''},
{'time': '2020-06-02T19:59:30.146553+00:00',
'status': 'Submitted',
'message': 'Fill 132.0@15.39'},
{'time': '2020-06-02T19:59:30.146553+00:00',
'status': 'Filled',
'message': ''}]
I could not find any other info. Has anyone encountered this and knows what could be happening? I am kind of pushing it on my maintenance margin. However, I would expect there to be a warning somewhere in the logs about the margin being exceeded, and I can't seem to find any. Any thoughts? Thanks!
[{'time': '2020-06-02T15:16:01.733084+00:00',
'status': 'PendingSubmit',
'message': ''},
{'time': '2020-06-02T15:16:04.024916+00:00',
'status': 'PreSubmitted',
'message': ''},
{'time': '2020-06-02T19:31:22.503361+00:00',
'status': 'PendingCancel',
'message': ''},
{'time': '2020-06-02T19:31:22.562397+00:00',
'status': 'Cancelled',
'message': ''}]
In contrast, this is a typical log for an order that got filled.
[{'time': '2020-06-02T15:15:22.300838+00:00',
'status': 'PendingSubmit',
'message': ''},
{'time': '2020-06-02T15:16:03.851715+00:00',
'status': 'PreSubmitted',
'message': ''},
{'time': '2020-06-02T19:59:30.099333+00:00',
'status': 'Submitted',
'message': ''},
{'time': '2020-06-02T19:59:30.146553+00:00',
'status': 'Submitted',
'message': 'Fill 132.0@15.39'},
{'time': '2020-06-02T19:59:30.146553+00:00',
'status': 'Filled',
'message': ''}]
I could not find any other info. Has anyone encountered this and knows what could be happening? I am kind of pushing it on my maintenance margin. However, I would expect there to be a warning somewhere in the logs about the margin being exceeded, and I can't seem to find any. Any thoughts? Thanks!