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

for fill in ccxt_order['trades']: TypeError: 'NoneType' object is not iterable #38

Open
Kevin-Al opened this issue Feb 22, 2021 · 3 comments

Comments

@Kevin-Al
Copy link

Kevin-Al commented Feb 22, 2021

@Dave-Vallance first, thank you

Im using testnet from bitmex. This is the result from fetch_order,

{'info': {'orderID': '5621672a-a590-4c96-b81e-4a1632c631fe', 'clOrdID': '', 'clOrdLinkID': '', 'account': 348254, 'symbol': 'XBTUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1, 'price': 55257, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Market', 'timeInForce': 'ImmediateOrCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Filled', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0, 'simpleCumQty': None, 'cumQty': 1, 'avgPx': 55248.5, 'multiLegReportingType': 'SingleSecurity', 'text': 'Submitted via API.', 'transactTime': '2021-02-22T09:37:59.255Z', 'timestamp': '2021-02-22T09:37:59.255Z'}, 'id': '5621672a-a590-4c96-b81e-4a1632c631fe', 'clientOrderId': '', 'timestamp': 1613986679255, 'datetime': '2021-02-22T09:37:59.255Z', 'lastTradeTimestamp': 1613986679255, 'symbol': 'BTC/USD', 'type': 'market', 'timeInForce': 'IOC', 'postOnly': False, 'side': 'buy', 'price': 55257.0, 'stopPrice': None, 'amount': 1.0, 'cost': 55248.5, 'average': 55248.5, 'filled': 1.0, 'remaining': 0.0, 'status': 'closed', 'fee': None, 'trades': None}

So 'trades' contains nothing. How should I approach this?

@nachoe40
Copy link

Thanks @Dave-Vallance for this project.
Same issue here with Binance and Binance Testnet.

@Kevin-Al
Copy link
Author

@nachoe40 have you come across any solution?

@nachoe40
Copy link

nachoe40 commented Mar 9, 2021

@nachoe40 have you come across any solution?

Just a quick fix on forked repo https://github.com/nachoe40/bt-ccxt-store

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

2 participants