Questions tagged [binance]

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.

Documentation

API Wrappers

1009 questions
0
votes
0 answers

Issue with request to Binance API with python

I'm having an issue arise when trying to make trades using the Binance API with Python. I want to sell 100% of my ether and convert it to another token. The request goes through fine sometimes, but about 75% of the time it doesn't and I get an…
-1
votes
0 answers

How to get offers from p2p Binance with currency "RUB"?

Can somebody help me? I have a telegram-bot for get p2p offers from binance. It worked good long time. But now I have a problem (2 days). I couldn't get offers for currency RUB. Output data is empty list. If I insert cookies from browser in headers,…
-1
votes
0 answers

Stop limit order doesnt work everytime on futures in javascript binance api

I am using market buy and after that stop limit order. But sometimes stop limit order doesnt work and price keep going down. stop limit order parameters; 1: coin name2: quantity3: reduceOnly: true4: price: entryPrice * 0.985: stopPrice: entryPrice *…
tester01
  • 116
  • 2
  • 10
-1
votes
1 answer

Binance Historical Tick Data (1 second) for a specific date range and symbol

I need to some how get the tick data for BTCUSDT for specific days. This is the raw tick data, the ( Last Price ) I will attach an image of a chart from TV and the price that shows on the right that moves up and down every second, I need that price…
Optimus Prime
  • 43
  • 1
  • 11
-1
votes
1 answer

Node.js PlaceOrder on Binance issue

I am having issue placing order on Biannce using API. I can get balance with this signature - works fine. Placing order giving me: { code: -1022, msg: 'Signature for this request is not valid.' } Have no idea what is wrong - any idea of what I am…
mch_dk
  • 369
  • 1
  • 4
  • 15
-1
votes
1 answer

I can't change binance endpoint version using ccxt

I am running a bot using CCXT library to operate with Binance Futures API. It was working like a charm so far. However, now I'm getting the following error: binance {"code":-5000,"msg":"GET /fapi/v1/positionRisk is retired, please use GET…
Pablo A
  • 1
  • 2
-1
votes
1 answer

ApiError-Binance api

I am using the API from binance to create test order but it is showing me this error: When I log out from the desktop app and log in again it works, but after the first response it shows the above error. Again I have to log out and log in. As you…
suhel
  • 1
  • 1
-1
votes
2 answers

binance api webhook for live update of future market prices

hello i am trying to i set up a webhook to binance for live update(ever sec) of future market prices i keep getting error :++Rcv decoded: fin=1 opcode=1 data=b'{"id":1,"result":null}' should be really easy but cant get it to work or find a working…
user1246950
  • 1,022
  • 2
  • 10
  • 19
-1
votes
1 answer

Pass variable to Binance API not working for client.get_asset_balance()

I'm retrieving two asset balances. I've set my code so that I only need to enter my pair once. crypto = 'BTC' #coin base = 'USDT' # stable-coin symbol = crypto+base I then try to pass these variables to certain functions, but I'm getting an error…
octoma
  • 5
  • 4
-1
votes
1 answer

How to close a short or long position in binance futures?

I want to close a position, but when I use this code to close the position, it makes a new order, I don't want that. shortQty = float(positions[position]['origQty']) client.futures_create_order(symbol=str(tkr), side="SELL", type="MARKET",…
-1
votes
1 answer

How to post a request with parameters and signature?

I have coded as below, but I get the error: "{\"code\":-1022,\"msg\":\"Signature for this request is not valid.\"}" I have check my api-key/secret and they are ok; now I don't know where is wrong? I have confirmed the 'signature' is also ok and I…
Henry
  • 75
  • 7
-1
votes
1 answer

BinanceAPIExceptionError: APIError(code=-2015): Invalid API-key, IP, or permissions for action

I tried every solution on the Internet in order to get rid of this error message but for some reason I can't solve it. client = Client(api_key=api_key, api_secret=secret_key,…
-1
votes
2 answers

Asyncio with 2 websockets

I trying to maintain 2 websockets connection open at the same time and have them send their response to a third async function, but I can't seem to get it to work. async def checking(): while True: print('Im here.') await…
-1
votes
1 answer

Binance {code: -1022, msg: 'Signature for this request is not valid.'}

I use SSR in next js with simple js fetch to make binance order, but facing with {code: -1022, msg: 'Signature for this request is not valid.'} var keysBuy = { "APIkey": 'my api key', "SECRETkey": 'my a secret key' } var myHeaders = new…
LD LDA
  • 1
  • 1
-1
votes
2 answers

The current price of the futures on the Binance exchange (in real time) in Python

This is my assignment: You need to write a Python code that will read the current price of the XRP/USDT futures on the Binance exchange in real time (as fast as possible). If the price falls by 1% from the maximum price in the last hour, the…
Alexey
  • 3
  • 2