Binance Developer Community
32 FOLLOWERS
Share knowledge, find weekly reports, and get interesting Binance recommendations in this forum community. Further, discuss issues on order qty, binance selling smaller notional, and so much more.
Binance Developer Community
3h ago
Hello!
I have a dificulty to get a CNY and COP PRICE width
https://api.binance.com/api/v3/ticker/price?symbol=CNY
or
https://api.binance.com/api/v3/ticker/price?symbol=COP
I have the return {“code”:-1121,“msg”:“Invalid symbol.”}
Please help:c
1 post - 1 participant
Read full topic ..read more
Binance Developer Community
9h ago
Struggling to grab more than 1000 candles from Binance’s API without missing a beat? You’re not alone. Here’s a swift rundown:
The provided code does a decent job fetching candlestick data from Binance, but it consistently misses the last three candles. Why? The culprit lies in how it calculates the start time for each iteration. By simply adding one second to the timestamp of the last fetched candle, it overlooks potential gaps between candles.
To remedy this, adjust the code to set the start time for the next iteration just after the timestamp of the last candle fetched.
s_time = int(new_kl ..read more
Binance Developer Community
9h ago
Hello, I have a margin account with 10k USDT in it.
I want to buy tokens while allocating a specific collateral I want to put in for that token and not keeping whole account balance as colletral. I want to use API to make such isolated margin orders on futures tokens. Is it possible to place a market order to buy tokens with margin but also allocating the specific amount from my account funds to be given as colletral.
Basically, while opening a order I will be telling: (token_name, postion_side, side, collateral_amount, token_quantity)
So that only some part of total amount is invested from my ..read more
Binance Developer Community
2d ago
Hello.
Sometimes TP/SL orders fail to work properly and expire.
Though not frequent, there are instances where both take_profit_market and stop_loss_market orders fail to execute and expire. How can we ensure that a market order is reliably executed when the price is reached?
The existing code implements this using the python-binance library as follows:
res = self.client.futures_create_order(symbol = "ETHUSDT",
type = "TAKE_PROFIT_MARKET",
side = stop_side,
stopPrice = stop_pri ..read more
Binance Developer Community
2d ago
Hello Folks,
I’m trying to generate ed25519 signatures for sending requests to signed endpoints in C++. I was successfully doing it in HMAC but now i want to do it using ed25519 keys and is not able to do so.
Please help.
1 post - 1 participant
Read full topic ..read more
Binance Developer Community
2d ago
The response for the all market tickers stream in the documentation does not match with the actual response received
This is the response received
{
“e”: “24hrTicker”,
“E”: 1713765173564,
“s”: “NEARUSD_PERP”,
“ps”: “NEARUSD”,
“p”: “0.506”,
“P”: “7.980”,
“w”: “6.36076957”,
“c”: “6.847”,
“Q”: “42”,
“o”: “6.341”,
“h”: “6.849”,
“l”: “6.051”,
“v”: “2624659”,
“q”: “4126323.03456056”,
“O”: 1713678720000,
“C”: 1713765173548,
“F”: 35079417,
“L”: 35156779,
“n”: 77363
}
while this is the response from the documentation
{
“e”: “24hrTicker”, // Event type
“E”: 1672515782136, // Event time
“s”: “BNBBTC ..read more
Binance Developer Community
3d ago
I use links like “Bitcoin Exchange | Cryptocurrency Exchange | Binance” in the website that I am developing to redirect the user to the trading page of each currency on Binance, but in the mobile view I want to redirect the user to the same pages on the Binance app not the browser so I used this link “bnc://app.binance.com/en/trade/COS_USDT” but i got this alert on Binance app
is there any solution or deep link I should use instead of that link?
1 post - 1 participant
Read full topic ..read more
Binance Developer Community
3d ago
code :
binance = ccxt.binance({
‘apiKey’: ‘—’,
‘secret’: ‘—’,
‘enableRateLimit’: True
})
binance.load_markets()
balance = binance.fetch_balance()
BN_XRP = float(balance[‘XRP’][‘total’])
client = Client(api_key=‘—’, api_secret=‘—’)
result = client.withdraw(coin= ‘XRPUSDT’, amount=BN_XRP, address=“raQwCVAJVqjrVm1Nj5SFRcX8i22BhdC9WA”,addressTag = ‘3707480751’, network=‘Ripple’)
print(result)
result :
BinanceAPIException: APIError(code=-4018): This currency does not exist.
1 post - 1 participant
Read full topic ..read more
Binance Developer Community
4d ago
Questions about maker fees when placing stop orders have been posted before, but none of the replies are really satisfying. @dino said to “set the time in force parameter (timeInForce ) to GTX”. This doesn’t work (at least not for stop limit orders) as the order gets cancelled (it says ‘expired’) the moment the stop price gets hit. Sadly, there is no sufficient documentation as far as GTX and/or stop limit orders are concerned. Placing stop limit orders using GTC works, but when placing a stop limit order using GTX such as the one below, the order gets expires the moment it hits the stop price ..read more
Binance Developer Community
5d ago
(topic deleted by author)
1 post - 1 participant
Read full topic ..read more