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
1 answer

how to parse data from Binance after switching to websocket

now that I've finally switched to websocket in Binance, I cant parse data from the response anymore like I used to do with my old script. I am using Javascript with Google Apps Script function balanceBinance() { var key = ''; var secret =…
-1
votes
1 answer

How does Binance Smart Chain and Pancake swap handle transactions?

I am trying to create a coin similar to Safemoon with an added type of reflection, but my friend claims that because I am adding another for loop that the gas fees will be too high. Do high computationally taxing transactions result in more fees? I…
Will
  • 1
  • 3
-1
votes
1 answer

Consuming Binance API

My team and I are building a webapp that can consume data from Binance API, but their documentation is quite complicated to understand. I need someone to show me how to: obtain the live feeds of prices of crypto assets seamless communication…
-1
votes
1 answer

Get number of open orders for a symbol using Binance's Node.js API

I am using Binance's Node.js API. It says regarding "Get open orders for a symbol", I should do: binance.openOrders("ETHBTC", (error, openOrders, symbol) => { console.info("openOrders("+symbol+")", openOrders); }); To print out number of open…
zabop
  • 6,750
  • 3
  • 39
  • 84
-1
votes
1 answer

Binance API - "Signature for this request is not valid"

Im trying to access my binance account via the REST API and RestSharp. This is my code: public void getaccountdata() { string apikey = "myapikey"; string secret = "mysecret"; var client = new…
dunkleosteus
  • 336
  • 1
  • 12
-1
votes
1 answer

C# library Binance.NET: get current average coin price

I am using Binance.NET library. It's a wrapper for binance.com api. I want to get the current average price of the Bitcoin. It seems that the library has no method to do it. Yes, it allows to use tickers, but maybe there is a better way?
Boris Makhlin
  • 240
  • 5
  • 11
-1
votes
1 answer

Automatic API call Binance, please :)

I'm looking for a way to make an automatic API call request every hour, do you know if it is possible? For example, I would like to make call for this API: https://api.binance.com/api/v3/ticker/24hr every hours but there is an automatic way to do…
vero
  • 1
-1
votes
1 answer

How to figure out how much money was spent for a collection of orders for a particular coin using the Binance API?

Basically imagine a coin like DOT, you could have 5 different buy orders that you put at different times and at different prices and some of them could even be filled partially. Then consider some sell orders that sold some of these coins. Not you…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
-1
votes
3 answers

Python-binance futures user data websocket

I need help with the code to stary binance futures userdata stream as the package is not working. I tried following changes in the code but it failed stating that APIERROR(code=0) Invalid Jason error message from Binance. The tweaks I made to…
-1
votes
1 answer

Sending a query string using a 'send_public_request' function from Binance Signature Examples

I'm kind of stuck on how to pass a query string to the function below. I've tried including in payload as a key-value pair and attaching it to the final version of the URL: def send_public_request(url_path, payload={}): query_string =…
-1
votes
1 answer

Store console.log result into array every 3 second

I am trying to get the price only of bitcoin from Binance for each second and store the result in an array. I have the following code, I have to refresh the page everytime I want the last price. I am also not sure how to input that in an array. …
M.J.
  • 15
  • 4
-1
votes
1 answer

How use Binance Api to receive USDT in app

I need to Use Binance API to generate USDT address per order and track it. I just need to use the Binance wallet, not any exchange service but not find it.
frank
  • 39
  • 1
  • 5
-1
votes
2 answers

python simple binance bot beginner

I have a simple binance bot for my cryptocurrency trading. The code is shown below: from binance.client import Client#from Binance Sir Sam Chardy from time import sleep api_key = '' api_secret = '' client =…
-1
votes
1 answer

Get only BTC pairs Binance Java API

I'd like to get only the BTC pairs of Binance. I use this code to get all currencies current prices List allPrices = client.getAllPrices(); System.out.println(allPrices); How do I turn only BTC pairs?
ken4ward
  • 2,246
  • 5
  • 49
  • 89
-1
votes
2 answers

How to change a String in Python to an Indexed List

I normally use the python-binance library, however, it is not up to date for a particular call I need to make. I'm therefore attempting to use the standard requests.get function as follows: import requests TakerRatio =…