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

Binance.Net placing order with the entire quantity

I wanted to put orders with 100% of my quantity but I don't seem to find built-in functionality in Binance.Net, so I decided to make it myself. var balance = _client.GetAccountInfo().Data.Balances.FirstOrDefault(e => e.Asset == "TRX").Free; var…
nop
  • 4,711
  • 6
  • 32
  • 93
0
votes
0 answers

How do Binance API calculate priceChangePercent in 24h to other time frame?

I understand that there is a 24 hour price change statistics and i am trying to develop my app to 4 hour instead. I have read the docs provided by Binance at https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md and…
0
votes
1 answer

Get values of a Java closable response body

I'm getting a list of data from Binance that returns a response, how do I access the values of the response body? private Closeable candleStick(){ BinanceApiWebSocketClient client =…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
1 answer

How to get price difference using Spring boot scheduler

I am writing a bot for trading. I need to get the price difference in time intervals. Let's say at 00:00:00:0000 GMT the price of a pair is 100.0000, and at 00:00:00:0005 GMT the price is 101.0000, I want to get this difference. I am using Spring…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
1 answer

How can run Binance api in laravel with Controller

I can't use binance api in laravel I installed Php binance api from composer require "jaggedsoft/php-binance-api @dev" but examples not working in laravel.I had some errors when I tried.
Rıdvan Akar
  • 13
  • 2
  • 3
0
votes
2 answers

How do I get Binance API prices in Python at a precise time?

The following is how I get historical data, however the date format does not allow me to specify the minute or second of the data; only the day, which is not precise enough. start_date_str=start_date.strftime("%d %b,…
Cam K
  • 127
  • 2
  • 2
  • 13
0
votes
1 answer

Request .get how to use a string as a parameter

I believe it may have something to do with the **kwarg param but I have no idea how to work with that, To specify I am trying to use the Binanace rest API to simply get the avg price for an altcoin and I can not understand how to specify which…
will floyd
  • 11
  • 4
0
votes
1 answer

A request to APIs in python. And displaying in the tkinter window

I'm trying to make some api calls from the Binance Exchange and do some live calculations, displaying results in a window. I have spent 4 hours and am still getting the same error. There is no other documentation to suggest I am doing anything wrong…
Bandit266
  • 1
  • 3
0
votes
1 answer

Resolving nodejs circular dependancies

I know this question has been asked several times but I cant solve it in my project structure. I have 3 files: new_order.js binance.js advance.js new_order.js is responsible for initializing values and passing it to binance.js to execute an…
Salman Fazal
  • 559
  • 7
  • 22
0
votes
0 answers

How to print response from binance API using python-binance

Does anyone know how to print the JSON results from the Binance's API? I've been using this to get_all_tickers which returns all symbols and prices. I want to be able to select a certain symbol and price and display it live in the terminal…
GRTTX
  • 1
  • 2
0
votes
0 answers

How can I plot ohlc chart?

Hello I am trying to plot the chart of some crypto currencies. I am trying to plot the chart BTC/USD but it does not work. Here is my code : from urllib.request import Request, urlopen import json import matplotlib.pyplot as plt import numpy as…
0
votes
3 answers

How to round (or perhaps cut) of a float based on some conditions

I am trying to make a cryptocurrency bot and I am stuck at a problem. I want to round of the balances based on the data from the exchange because otherwise the exchange doesn’t accept the order request. For example my account contains…
0
votes
3 answers

Binance 400 response and duplicate values for a parameter detected

still trying to get my head around API's and connections. I am trying to do a buy order to Binance but keep getting a 400 response. I know it's been an issue for some others but I just can't seem to suss out where I am going wrong. So hoping someone…
0
votes
1 answer

Binance API call not working in Lavavel Controller

I am writing a laravel controller which calls Binance PHP APIs. The PHP API works perfect if run individually from command line, e.g., php price.php +++++++price.php++++++++ $api = new \Binance\API($api_key, $api_secret); // Get all of your…
GoQuestion
  • 71
  • 2
  • 9
0
votes
0 answers

Binance API interface - Excel VBA

I'm trying to setup a API connector with my Binance account and have come across the below code (which I found here: https://github.com/krijnsent/crypto_vba/blob/master/ModExchBinance.bas) which I can't seem to tweak to provide the information I…
Jeremy
  • 1,337
  • 3
  • 12
  • 26