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
-1
votes
2 answers

{ "status": "FAIL", "code": "400002", "errorMessage": "Signature for this request is not valid." }

Im trying to get "create order" api from binance pay api to make payments in my kotlin android application. I am following api documentation to build the payload and signature but unfortunately its not working. Im getting this error :…
-1
votes
1 answer

Get info from str-list

My info-resource (binance-api) returns info as string list. Can you help me and explain how can I take variable 'initialLeverage': Code def long(): lever = client.futures_leverage_bracket() lever = pd.DataFrame(lever) print(lever) …
-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…
-1
votes
2 answers

Binance WebSocket API

how can I get live stream from binance web-socket. anyone know about that? I tried his documentation but I can not understand properly https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md#subscribe-to-a-stream above his…
-1
votes
1 answer

Python - how to get add a counter inside a IF condition to add track the number of times something has occured

I am new to python and learning it in bits and peices from internet. I have been tring to get a volume monitor for binance volumes. for x in range(len(name)): # Code to get the data into panda dataframes for each token in name[] hrlyvol =…
-1
votes
1 answer

Binance open API Google Shets JavaScript Websocket ban

I have JavaScript to communicate with the Binance API - it only downloads two data - I can't finish it because I get the message: {"code": - 1003, "msg": "Way too much request weight used; IP banned until 1663675430913. Please use the websocket for…
elbingerr
  • 19
  • 5
-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…
-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':…
-1
votes
2 answers

python-binance ThreadedWebsocketManager with http proxy

I try to use ThreadedWebsocketManager to start a stream on a Windows PC. This PC is behind a http proxy. No error, but no response.... did I do something wrong? or did I forget something? Note: on this pc i don't have Administrative rights... EDIT:…
-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…
-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', …
-1
votes
1 answer

Web scraping in Python. P2P data extraction in Binance and other exchanges

I am trying to develop a python software for extracting prices by web scraping from these sites: https://p2p.binance.com/es/trade/all-payments/USDT?fiat=ARS https://www.kucoin.com/es/otc/buy/USDT-ARS I used as a guide a simple youtube tutorial where…
Alan
  • 1
  • 2
-1
votes
1 answer

Problem in communicating with Binance exchange in NodeJS web socket

When I execute the following piece of code in the app.js file const WebSocket = require('ws'); const ws = new WebSocket('wss://stream.binance.com:9443/ws/!miniTicker@arr'); ws.on('message', function (data){ //const result = JSON.parse(data); …
P B
  • 21
  • 2