Skip to content

action: disabled #558

Open
Open

Description

@thesinakamali

Issue type

  • performance

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)

Activity

  1. pro-git commented on Feb 8, 2021

    @pro-git

    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))

  2. MarcelWind commented on Mar 27, 2024

    @MarcelWind

    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.

  3. keshunchen commented on Jan 19, 2026

    @keshunchen

    paper trading should use the pair like this tTESTETH:TESTUSD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions