Questions tagged [binance-api-client]
278 questions
2
votes
1 answer
binance Order would immediately trigger
Hello I Try To Create An order by type STOP_MARKET in binance future It's My Code :
from binance.client import Client
api_key = '#'
api_secret = '#'
if __name__ == "__main__":
client = Client(api_key, api_secret)
price =…

Hesam Aghajani
- 73
- 5
2
votes
1 answer
How to convert EUR to BTC on Binance via API call?
I would like to convert EUR to BTC via API call on Binance. The API key already created, but I don't know how to make an API call to do this. The official documentation doesn't have any example.
I would like to do this on Linux (with cURL).
Thanks!

Feriman
- 503
- 8
- 17
2
votes
4 answers
Delphi + Binance Api + Limit Order Problem Invalid signatur
{"code":3702,"msg":"Invalid signature.","timestamp":1623848681308}
i use trbinance.com api. I keep getting the same error
procedure TForm1.Button1Click(Sender: TObject);
var
url, sign, queryString, nonce: string;
ST: SystemTime;
DT:…

Abdullah Yılmaz
- 53
- 7
2
votes
2 answers
Is there a Binance API endpoint to close all positions?
Is there a specific binance futures API endpoint with which you automatically close all positions? There is such an option in the GUI. Right now I can only imagine getting amounts of all positions and than selling that amount, but is there an easier…

Borut Flis
- 15,715
- 30
- 92
- 119
2
votes
2 answers
Short Order on Binance futures testnet resulting in APIError (ReduceOnly Order is Rejected)
On using futures testnet API through python-binance library: https://github.com/sammchardy/python-binance
I am getting this in ‘Buy Short’ in Hedge mode. I am able to execute the same order via the UI and it works. I am able to use the API for ‘Buy…

tzharg
- 313
- 2
- 11
2
votes
2 answers
How to use TAKE_PROFIT property in binance api
I used binance api node in my code (https://github.com/binance-exchange/binance-api-node)
I wrote javascript code that buy any coin in binance api. It is working but I am looking for something like stop loss. Opposite of stop loss, like take…

tester01
- 116
- 2
- 10
2
votes
2 answers
How can I get all coins in USD parity to the Binance API?
I need binance data to build a mobile app. Only USDT pairs are sufficient. In the link below it takes all trading pairs, but I only want USDT pairs. Which link should I use for this?
https://api.binance.com/api/v3/ticker/price

furkanbicak
- 33
- 1
- 7
2
votes
1 answer
Binance unexpected percent price error for certain symbols
I've got unexpected Binance API error when trying to submit an order for ETHUSDT. The error looks standard:
{'code': -1013, 'msg': 'Filter failure: PERCENT_PRICE'}
I am passing an average price, retrieved a second ago using API's Symbol Price…

Paul Bobyrev
- 97
- 3
- 9
1
vote
1 answer
Python binance - get futures position information
I would like to retrieve future position histroy from the Binance API, just like it is on the dashboard.
I need this data to then later display on a spreadsheet.
Thank you.
I've tried to play with the…

Jože Strožer
- 663
- 1
- 6
- 14
1
vote
0 answers
How do I force HTTP connections to use IPv4 instead of IPv6 in Python?
When attempting to connect to the Binance REST API from a Windows 11 computer, I got the following error:
ccxt.base.errors.ExchangeError: binanceus {"code":-71012,"msg":"IPv6 not supported"}
In this particular example I am using the ccxt Python…

arosca
- 469
- 7
- 15
1
vote
1 answer
Python binance api rsi calculation with last 15 value is wrong
I want to use 15 minutes data to calculate my own RSI strategy. I am using binance API with python. So I need the last 15 closes data of BTCUSDT. I am getting it like this.
start = str(dt.datetime.now(dt.timezone.utc) -…

barteloma
- 6,403
- 14
- 79
- 173
1
vote
0 answers
how to create never growing data frame
how to create never growing data dataframe which append a new row at last and delete first row of data frame everytime.
I want to create binance live kline historical data steaming to the now and append the latest kline ticker data.
It may light for…

harish sarwade
- 11
- 1
1
vote
1 answer
Binance Live Trading - APIError(code=-2014): API-key format invalid
I am having an issue requesting my account information after importing the data with my api_key from Binance. I am writing a script that allows to fetch live 'MATICUSDT' data with (Python Binance Websocket). The script runs totally fine when…

Kelvin Kissi
- 11
- 2
1
vote
2 answers
Binance API response shows wrong minimum order quantity
Trying to hit the fapi.binance.com/fapi/v1/exchangeInfo endpoint in order to get the current minimum order quantity for a pair (let's take ETHUSDT as an example).
Here is what Binance UI shows as the minQty: Minimum order quantity for ETH is…

koto
- 39
- 6
1
vote
2 answers
Python Binance Futures Take Profit and Stop Loss order API Error 2021 Order would immediately trigger
I have written a trading bot working on futures account for margin trading. The piece of code that I shared below worked fine for just one time. Then it started to give the following error:
APIError(code=-2021): Order would immediately trigger
The…

Hamit Kaan Serifoglu Student
- 21
- 1
- 2