Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order Reject via API: Canceled: Order had ordType of Market\nSubmitted via API. #519

Open
ManuCN opened this issue Oct 19, 2022 · 0 comments

Comments

@ManuCN
Copy link

ManuCN commented Oct 19, 2022

Hi all,
I tried to submit a market order using the API. It got cxld with the message above. Any idea whats the issue here? I tried to submit the same order again using the API and it worked...
Thanks a lot!
Manuel

Below is the return value of the order function call:
{'orderID': 'c050ff21-724e-4066-8ad2-c058d69606f1',
'clOrdID': '',
'clOrdLinkID': '',
'account': 405604.0,
'symbol': 'AVAXUSDT',
'side': 'Sell',
'simpleOrderQty': None,
'orderQty': 6000.0,
'price': 15.527,
'displayQty': None,
'stopPx': None,
'pegOffsetValue': None,
'pegPriceType': '',
'currency': 'USDT',
'settlCurrency': 'USDt',
'ordType': 'Market',
'timeInForce': 'GoodTillCancel',
'execInst': '',
'contingencyType': '',
'exDestination': 'XBME',
'ordStatus': 'Canceled',
'triggered': '',
'workingIndicator': 0.0,
'ordRejReason': '',
'simpleLeavesQty': None,
'leavesQty': 0.0,
'simpleCumQty': None,
'cumQty': 0.0,
'avgPx': None,
'multiLegReportingType': 'SingleSecurity',
'text': 'Canceled: Order had ordType of Market\nSubmitted via API.',
'transactTime': '2022-10-19T19:35:15.680Z',
'timestamp': '2022-10-19T19:35:15.680Z'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant