[Python] problem with python binance api order_market_buy and order_market_sell

Discussão em 'Python' iniciado por Stack, Março 24, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to use order_market_buy and order_market_sell to buy/sell, taking BTCUSDT for example, when buying, I want to use all my usdt, when selling, I want to sell all the BTC.

    I use

    order_buy = Client.order_market_buy(symbol='BTCUSDT', quoteOrderQty=my_USDT_position)
    order_sell = Client.order_market_sell(symbol='BTCUSDT', quoteOrderQty=my_BTC_position)


    it's not working and pop"missing 1 required positional argument: 'self'"

    Please help me with the problem, thanks!

    Continue reading...

Compartilhe esta Página