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

Stop Binance Futures API from printing candlestick data as a list

When using the Binance Futures API to get candlestick data, the call prints all the data it retrieves from the socket. This gets in the way of whatever you're trying to make. https://github.com/Binance-docs/Binance_Futures_python/
Juicestus
  • 442
  • 1
  • 7
  • 14
0
votes
2 answers

Passing data from within a class into def

When I run the binance.py file, I get an error like the following. I am sending data in class. How do I fix this? import websockets from binance.client import Client from binance.websockets import BinanceSocketManager class…
doktorcuk fatih
  • 85
  • 1
  • 1
  • 4
0
votes
0 answers

How can I add a tradingview chart or its snapshot in google sheets using google apps script?

I used google apps script to fetch data from Binance, then drew candle stick charts in google sheet automatically. The quality of chart is not enough satisfactory. Please someone say how can I insert tradingview charts/snapshots in google sheets by…
0
votes
0 answers

Best place to define a infinite loop for reading data from API and compare with database

I have a program that wants to read data from an API and compare that data with data stored in the database. if some conditions exist, then remove data from the database and send data to a function. Database and API are not important for me in this…
Arsham Arya
  • 1,461
  • 3
  • 17
  • 25
0
votes
1 answer

How to use get_orderbook_tickers for a specific symbol?

I am trying to get bid/ask prices for BTCUSDT i am not sure how to specify this in my statement: order_book = client.get_orderbook_tickers() I have tried: order_book = client.get_orderbook_tickers("symbol"= "BTCUSDT") I get errors
Screwtape007
  • 185
  • 1
  • 2
  • 16
0
votes
1 answer

run binance-api-node module

I used npm to install the Binance API node. I reach to the following step: import Binance from 'binance-api-node' const client = Binance() // Authenticated client, can make signed calls const client2 = Binance({ apiKey: 'xxx', apiSecret:…
M.J.
  • 15
  • 4
0
votes
2 answers

python search index of index for highest value

I am trying to find the highest daily high within daily kline data from binance. I am able to API call the list of lists with this code. client.get_historical_klines('maticbtc', Client.KLINE_INTERVAL_1DAY, "2 days ago UTC") The output is a list of…
Mitch
  • 11
  • 2
0
votes
1 answer

How to send multiple orders to binance at incrementally decreasing prices in python using FOR loop

I am using python-binance to connect to binance cryptocurrency exchange. I am able to send orders simply using this code: client.create_margin_order( symbol = 'BTCUSDT', side = Client.SIDE_BUY, …
Mitch
  • 11
  • 2
0
votes
1 answer

How to graph Binance API Orderbook with Pandas-matplotlib?

the data comes in 3 columns after (orderbook = pd.DataFrame(orderbook_data): timestamp bids asks UNIX timestamp [bidprice, bidvolume] [askprice, askvolume] list has 100 values of each. timestamp…
edlujan
  • 3
  • 3
0
votes
0 answers

is there a parameter, that makes ccxt fetch ohlvc from binance testnet?

i wrote a method to fetch ohlvc data from binance or bybit using ccxt. I want to get the data from the testnet of these two exchanges. How can i do that ? I searched ccxt code a bit and found, that testnet urls are present for the binance exchange,…
stdout
  • 79
  • 1
  • 6
0
votes
1 answer

how to get binance-python testnet updating balance?

I am trying to get acquainted to python-binance (0.7.5) (on Python 3.7.6) and struggling to understand why my command doesn't seem to do anything. I am connecting to testnet. I can get account details, ticker prices, calculate step, get balances etc…
cmcoder05
  • 1
  • 2
0
votes
1 answer

Writing foreach statement to filter Binance API results returns arbitrary data

I'm calling Binance API that returns a list of data. Now I want to filter the data to get some results and store using foreach statement in Java but it's been giving the result inclusively some arbitrary data result. I'm sure it is because of the…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
1 answer

Python binance fetchMyTrades gives only 3 month of personal trades, so how do one iterates through results?

I am trying to get my trades earlier than 3 months I do it like this: #I use ccxt library result = ccxt_binance.fetchMyTrades('BTC/USDT', since = 1588669559517) But still get the trades only for 3 months and can't get trads before 2020-05-05 Am i…
user2950593
  • 9,233
  • 15
  • 67
  • 131
0
votes
1 answer

Python Telegram, How to save user input as string

I am making a Telegram trading bot that will create an order after receiving a string from the user. How can I make the bot receive that string?
Rai13
  • 13
  • 2
0
votes
1 answer

Unable to make a MARKET order on Spot Test Network on Binance. Empty JSON is returned

I’m trying to test MARKET order with Spot Test Network in Postman. But I receive empty JSON as response. Why? Do MARKET orders work on Spot Test Network as of July 2020? Was my order executed? How can I check on Spot Test Network if a MARKET order…
Green
  • 28,742
  • 61
  • 158
  • 247