Binance is a cryptocurrency exchange website. This tag is for questions related to the Binance API and usage of Binance API wrappers. This tag is not specific to any programming language.
Questions tagged [binance]
1009 questions
-2
votes
1 answer
Python Binance Futures - problem creating Take Profit Limit order -> (APIError(code=-2021): Order would immediately trigger.)
Trying to write a basic Binance trading bot in python.
Keep getting "APIError(code=-2021): Order would immediately trigger" even though it makes no sense when placing a limit order.
At the time of writing this the ETH/BUSD exchange is rate is at…

anukthal_is_here
- 1
- 2
-2
votes
1 answer
Why Binance API raise CORS, how to handle it?
Got this error from Binance:
has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
Calling like this in a React app.
useEffect(() => {
const…

János
- 32,867
- 38
- 193
- 353
-2
votes
1 answer
Python binance api order bid and ask
I connected to Binance api and download the recent orders and put them in a dataframe using Python.
I need to get di "bid orders" and "ask orders" to calculate the delta for each candlestick.
Basically, to calculate the delta it's very simple, is…

Gianluigi Mvutu
- 23
- 1
- 2
-2
votes
2 answers
I cant install binance api to pycharm
I am currently trying to install the python-binance api to pycharm. I enter
python -m pip install python-binance
into the terminal and I get the error
Python was not found; run without arguments to install from the Microsoft Store, or disable this…

user18625843
- 57
- 6
-2
votes
1 answer
How to seperate an exchange pair string returned from binance api into two strings
I am getting market information from the Binance API and transform them in the following form by storing them in a dictionary:
{"ETHBTC": 0.069587,
"LTCBTC": 0.002675,
"BNBBTC": 0.013776,
"NEOBTC": 0.000427,
"QTUMETH": 0.002141,
…

useeeeer132
- 178
- 1
- 10
-2
votes
1 answer
Ccxt binance fetchOHLCV doesn't return last data
I am using ccxt library for binance. To calculate the sar indicator, I am using fetchOHLCV to get last last historical data but the problem is that some times data are not reflecting the last binance data. We observe some delays
Can anyone help me?

Simsima
- 1
-2
votes
1 answer
Retrieve transaction details as shown on bscscan
I am trying to retrieve info about bsc transations using Bscscan api but it appears to be very limited.
endpoint = "https://api.bscscan.com/api"\
"?module=account"\
"&action=txlistinternal"\
"&txhash={}"\
"&apikey={}"
After sending a…

maic0L
- 45
- 8
-2
votes
1 answer
Problem with opening order on binance python
i am reviving signal to open order in this format : 'SELL', '1INCHUSDTPERP', '0.6396', '0.652392', '0.588432'. 1- side 2 - symbol 3 - order price 4 - stoploss price 5 - takeprofit price. Than i round all prices in this way:
tick =…

Wolky
- 1
- 2
-2
votes
1 answer
binance api, i cant put an order with a price in dollar (not in quantity)
i try to put some orders at a specific price.
For example i would like to put 20 dollars to buy some ETHUSDT at 800 usdt but it gives me this error:
binance.exceptions.BinanceAPIException: APIError(code=-1106): Parameter 'quoteOrderQty' sent when…

guiguilecodeur
- 429
- 2
- 15
-2
votes
1 answer
Is multiple Binance api key possible to increase the limit rate?
One binance api key limited 1200 request per minute, How's if I create multiple api key for increse the limit rate? I can create 30 api key for my personal binance account. So I can increse the 1200 limit rate to 3,600 limit rate, is it works?

Moon soon
- 2,616
- 2
- 30
- 51
-2
votes
1 answer
python-binance : How I can use time parameter to the function?
I tried to use this function but I got error.
I think need to change date format of time parameters.
now = datetime.now()
past = now - timedelta(days=2)
past = str(past)
bars = client.get_historical_klines("BTCUSDT", "1m", start_str = past,…

Kyungyun Lee
- 115
- 9
-2
votes
2 answers
How to cancel futures binance order?
I'm working with python-binance. In my code, I place a futures market order, using this code:
order = self.client.futures_create_order(
symbol=coin_pare,
type='MARKET',
side=route,
…

Zeroch1
- 1
- 1
- 1
-2
votes
2 answers
Does a Binance API for Swift (iOS) exist?
I want to make an iOS app that can read data from my Binance account. Anyone know if there is an API for this? If no, is there any other way to get the data?
Thanks in advance!

hoddy
- 127
- 3
- 10
-2
votes
1 answer
Problem with retrieving a list of all market pairs in json using Binance Api with php
I am trying to retrieve a list of all market pairs in json using foreach. I want result to be something like…

mrmar
- 1,407
- 3
- 11
- 26
-2
votes
1 answer
Create or Clone a smart contract from Binance Smart Chain. Willing to pay some money to learn
Thank you for reading this. I am learning about cryptocurrency and about Binance smart chain. I want to try to learn and want to clone a few projects such as this one:
https://bscscan.com/address/0x359f35085202c8527a0c767557339635a335eb76#code
I am…

Paper
- 1
- 1