Open kamali-sina opened 4 years ago
Same issue here with REST submitOrder on pair tTESTBTCTESTUSD tAAABBB pair is working.
WS submitOrder is not working on any pair (tAAABBB ERROR: trading: invalid symbol (paper))
Same here. Code from Examples.
submit_order_notification: Notification[Order] = bfx.rest.auth.submit_order( type="EXCHANGE LIMIT", symbol="tBTCUSD", amount=0.015, price=10000 )
Crashes with
The server replied to the request with a generic error with message: <trading (paper): invalid symbol (non-paper)>.
Question: why does this crash the program? I get that the API doesn't recognize trading pairs on paper accounts, and who cares, but this reply should just cascade upwards and be returned.
Issue type
Brief description
I am trying to use a paper account to get used to the api, and I have generated a fully functioning api key for it. But when I try to do any sort of PaperTrading with the api I get the message: "[BfxWebsocket] [ERROR] Notification ERROR: action: disabled"
Steps to reproduce
-Setup a paper sub account -Get api key for it -Try to trade in any of the paperMarkets
Additional Notes:
My code is as follows: async def open_trade(symbol,price,amount,_type='sell',market_type='EXCHANGE LIMIT',price_trailing_amount=5): if (_type == 'sell'): amount = -amount await bfx.ws.submit_order(symbol=symbol, price=price, amount=amount, market_type=market_type,leverage=1,price_trailing=price_trailing_amount)