Questions tagged [binance-api-client]

278 questions
1
vote
1 answer

Can't fetch binance futures data from ccxt

I need to fetch funding rate history data from binance, but it only shows spot markets even when I type : binance = ccxt.binance({'option': {'defaultType': 'future'}}) binance.fetch_markets() How is it possible to fix?
Marco Polo
  • 21
  • 2
1
vote
2 answers

binance futures how to close a position at market price (the same as the "market" button under "close positions") via API

This question is about binance FUTURES api (not spot exchange, but futures). GOAL : have the same behaviour that the button "market" under "close positions" that closes a position. NOTE : please don't reply the endpoit : DELETE…
John R
  • 277
  • 3
  • 10
1
vote
1 answer

getting data from the tradingview volume indicator

there is a candle volume indicator on binance in tradingview. How do I get the value of this indicatorfrom binance API. the values I get from there are not similar to the values of this indicator From binance APi i get data 127.07945000 Please,…
1
vote
0 answers

Binance API: OSError('Tunnel connection failed: 405 Method Not Allowed')

I am trying to access Binance Vanilla Futures data by using [this code][1] as a framework to better understand how to get the data. However, when I input my API keys I get an error OSError. Here is the code: proxies = {'http':…
ReinisosFF
  • 11
  • 1
1
vote
2 answers

With the Python-Binance API, my limit order is only partially filled

I'm using Python 3.9 and the Python - Binance API, version python-binance==1.0.15. In their test environment, I'm placing buy orders like so order=self._get_auth_client(account).order_limit_buy(symbol=formatted_name, …
Dave
  • 15,639
  • 133
  • 442
  • 830
1
vote
1 answer

Fixing a python bot for making it suitable for futures trading on Binance

I am a novice coder who tries to learn and definitely struggle. I trade for almost 10 years and now trying to automate it. Encountered generous "Part Time Larry" and tried to update his code to make it suitable for futures. It can generate signals…
1
vote
2 answers

SSL Certification Validation Failed in Binance Connector for Python

I am trying to build an app to detect pumps and dumps in crypto market, so I decided to use binance because of popularity. So I installed binance-connector by pip3 install binance-connector on macOS 12.0.1 (I am using vs code as IDE) So I tried to…
Umut Gür
  • 369
  • 1
  • 4
  • 18
1
vote
1 answer

Get latest order updates Binance

I'm trying to create a copy trader which will copy all trades from a main account to child account. I checked Binance API docs but couldn't figure out much from it. For example, I need to listen to all order updates such as executed, canceled,…
Cassano
  • 253
  • 5
  • 36
1
vote
1 answer

Find Tick Size for a symbol Futures Binance

I'm trying to find the tickSize for a specific symbol (which is bound to change), so I coded it this way, but doesn't work: data = client.futures_exchange_info() tick_size = 0.0 the_symbol = "BTCUSDT" info = data['symbols'] for f…
Cassano
  • 253
  • 5
  • 36
1
vote
2 answers

ColdFusion : Get Array from Inside Structure - Binance API Result

Horray - got the ColdFusion to Binance API working. Binance API Result has an Array Inside the JSON Structure. Trying to pull the Fills data. But not having best luck.
1
vote
1 answer

ColdFusion : Binance API : Not all sent parameters were read

These Crypto API's are going to be the death of me. Finally have Binance API sorted and the Signature working. But now when all the variable are passed I get the error -1104 below. {"code":-1104,"msg":"Not all sent parameters were read; read '4'…
Merle_the_Pearl
  • 1,391
  • 3
  • 18
  • 25
1
vote
0 answers

"Precision is over the maximum defined for this asset" Binance

I checked other posts and answers and didn't find a favorable answer. :( I am trying to find a proper price after a value is generated by code. For example, I'm trying to place a STOP MARKET order for a MARKET BUY order whose "avgPrice" I already…
Cassano
  • 253
  • 5
  • 36
1
vote
0 answers

How to use Binance Helper to round quantity and price properly?

It's been a few days since I've been trying to wrap up my head around this problem of what amount of decimals to round the quantity and price to. The following errors are the errors that happen once you satisfy one error, then the other is not…
Cassano
  • 253
  • 5
  • 36
1
vote
1 answer

Binance Pay API Invalid API-key, IP, or permissions for action. How to send through Binance Pay api

I'm having some trouble using the binance pay api. My goal is to automate the payments for a platform that I'm building, for that I'm using withdrawal from spot wallet and I want to use binance pay. Reading this Binance Pay API Documentation and…
1
vote
0 answers

Binance, ccxt futures, problem about amount in order

I got an interest about ccxt these days, especially futures trade i tried to make a logic and it was fun but I've got a problem to "Setting amount" def binance_long(): order = binance.create_market_buy_order( symbol = symbol, …