Questions tagged [binance-api-client]
278 questions
-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
1 answer
Error when trying to use Binance api Client
I am located in California and I am trying to use the Binance API. When using this code:
from binance.client import Client`
client = Client(api`*`key, secret_key)
this code produces the error:
raise BinanceAPIException(response,…

Evank
- 9
-1
votes
1 answer
Python: How to extract information from an object type
For example, in my case i use this function from Binance API to get information from my account.
In: client.get_isolated_margin_account()
Out:
{'assets': [{'baseAsset': {'asset': 'BTC',
'borrowEnabled': True,
'borrowed': '0',
'free':…

Andrei Filip
- 1
- 1
-1
votes
1 answer
Python loop issue for Binance API
Hi i have 2 python files and first file for data and its working with timer, example first file timer is set for 02/05/2023 - 02:50am and when this date is come this file triggered and opens the order, but 2st file is checks this order status i mean…

exneed
- 16
- 4
-1
votes
1 answer
Tracking multiple "Binance" orders for multiple users from a single connection
The task is as follows:
There is a list of users from Binance exchange, each user can create an order on the Binance exchange. It is necessary to implement a mechanism for tracking user orders on the Binance exchange through a single…

Илья Хоришко
- 695
- 4
- 15
-1
votes
1 answer
binance new order api {'code': -1022, 'msg': 'Signature for this request is not valid.'}
i write below code in python for opening new spot trade from binance
but when i send request to server i get this response {'code': -1022, 'msg': 'Signature for this request is not valid.'}
class Trade():
def __init__(self):
self.url =…

hbv73
- 1
- 3
-1
votes
1 answer
Python-Binance.US api: APIError: (code=-1013): Filter failure: LOT_SIZE
I am receiving an API error when trying to place a sell order. My buy orders are working fine.
Request parameters:
{'symbol': 'BTCUSD', 'side': 'SELL', 'type': 'MARKET', 'quantity': '0.04965054', 'newOrderRespType': 'RESULT', 'timestamp':…

Eric Cepress
- 35
- 5
-1
votes
1 answer
Binance API limit order gets filled immediately on market price
I was trying to test limit order but order got filled immediately on market price. Anyone knows the probable solution to this problem? Thanks in advance
limit_order_long =…

Salman
- 1
-1
votes
1 answer
How to change margin in Binance API Python
How can I define the type of margin (isolated or cross) in my code ///
Also, how can I determine the amount of leverage?
I read here but didn't understand anything
https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade
-1
votes
1 answer
Curl based on poor and money-greedy binance docs
I am trying curl to binance api.
I am basing on:
https://binance-docs.github.io/apidocs/spot/en/
https://binance-docs.github.io/apidocs/futures/en/
I have already created bunch of successful curls for example for placing limit-order in isolated…

linux_beginner
- 85
- 6
-1
votes
1 answer
APIError(code=-3006): Your borrow amount has exceed maximum borrow amount but I don't
info = client.get_isolated_margin_account(symbol='BTCUSDT')
totalAssetOfBtc = float(info['totalAssetOfBtc'])
precision = 5
totalBTC = "{:0.0{}f}".format(totalAssetOfBtc, precision)
order = client.create_margin_order(
symbol='BTCUSDT',
…

user566657
- 9
- 2
-1
votes
1 answer
How do you stored orders that have not met it's requirements while other orders are been made
IMAGINE .....
So if I have 10 unripe apples in a box which will represent to orders.
And the requirement is the apples must be ripe
And 6 of those apple's are ripen which already met the requirements.
I will have 4 left in the box, but while those…

Lord SC11
- 1
- 1
-1
votes
1 answer
Binance API entering order gives me MIN_NOTIONAL
I'm currently using an open source Binance API from nuget, called
Binance.Net from JKrof
https://github.com/JKorf/Binance.Net
I already have my API and keys in place, but when i tried to enter either Market or Limit order, using this....
// Market…

Zaken
- 3
- 3
-1
votes
1 answer
How to define an async client for the whole class?
Hi I can define async client object only one time - one connection to server and then working with it, but I coudn't undestand how to define this client global for class. I just guessed to create a new connection before each use, but of course that…

Lechko Faray
- 1
- 1
-1
votes
1 answer
Binance API get_aggregate_trades combination of optional parameters inavild
I'd like to request aggregated trade data beginning at a certain timestamp until now
client.get_aggregate_trades(symbol = 'EURBUSD', startTime = 165605516493)
but i only get an Error:
File "c:\Users\Pascal\Python Skripts\Binance\test.py", line 39,…

PyNoob
- 9
- 3