You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: