41 questions
0
votes
1
answer
52
views
How to reconnect a web socket? I'm getting an error "ConnectionClosedOK"
I am using this library (https://github.com/sammchardy/python-binance) to download data from binance. I get the following error after running data collection script for 3 days or so.
INFO:root:{"...
0
votes
0
answers
67
views
python-binance get_universal_transfer_history returns empty for FUNDING_MAIN
I'm trying to fetch internal asset transfer history from Binance, specifically transfers between my Funding Wallet and Spot Wallet, using the python-binance library. I'm interested in FUNDING_MAIN (...
0
votes
0
answers
91
views
Error 2015 when trying to initialize client for Binance Testnet
I'm trying to get my bot running in paper trading mode. I'm using python-binance library in my code and the keys I generated on testnet.binance.vision. I initialize the client with client = Client(...
0
votes
0
answers
32
views
Python using a async function in a WS callback
I am using the official binance API connector. It consisted mainly of two parts:
Subscribe WS to receive data
REST to send requests. all in sync version
I first send two orders using my modify async ...
0
votes
0
answers
39
views
Issue with get_symbol_info method in AWS Lambda using python-binance
I am currently working on implementing an AWS Lambda function that interacts with Binance to analyze prices. I successfully installed the python-binance package on my Lambda function.
While the ...
0
votes
1
answer
30
views
How to get prices of locked assets using python-binance?
This code shall return a list of balances.
from binance.client import Client
client = Client(api_key, api_secret)
account_balances = client.get_account()["balances"]
wallet_coins = [balance ...
0
votes
0
answers
70
views
How can I make this Python Polars code more efficient for calculating Indicators
I have an IndicatorManager class in Python that takes a Polars DataFrame and calculates 60 indicators, some using TA-Lib and others implemented with Polars code. I've noticed that when I run the class ...
-1
votes
1
answer
424
views
How to create a Stop Market order in Binance Futures API
I am trying to use the Binance API to create a stop market order like its done in the Web Application but I keep running into problems. The few times the code goes through, it only creates the first ...
0
votes
0
answers
133
views
Python Binance Websocket API Failed With WinError 10060
I've been trying to use python binance websocket api with the code below:
import websocket
SOCKET = "wss://stream.binance.com:9443/ws/btcusdt@trade"
def on_open(ws):
print('opened ...
-1
votes
1
answer
217
views
Very very basic python-binance ThreadedWebSocketManager example does not work... why?
I have an application that uses the binance api to trade and do some other stuff. The app worked fine for like 2 years, but one day it stopped working. So i decided to create a basic script to ...
-1
votes
1
answer
1k
views
Binance futures testnet data differs from read binance futures data
I am new to binance api and now I am using binance futures testnet. I’ve noticed that the data that testnet shows differs from the real futures data.
Testnet data:
Real data:
Additionally testnet ...
0
votes
0
answers
63
views
Code not running on M1 Pro Mac but does on Intel, how to solve this?
from binance.enums import *
# from binance.client import Client
from binance.streams import ThreadedWebsocketManager
import pandas as pd
import os
import nest_asyncio
nest_asyncio.apply()
# Define ...
1
vote
2
answers
715
views
How to place a bracket order on Binance through API?
Let's assume that I have buy_price, given I want to buy x quantity of that coin.
If the buy order is executed I want to execute a OCO order which would ensure to take profit on a certain price that ...
1
vote
0
answers
340
views
Binance websocket stream over a proxy problem
I tried using different private proxies from multiple proxy seller companies to fetch the Binance websocket stream "wss://stream.binance.com:9443"
But I got websocket._exceptions....
0
votes
0
answers
198
views
the prices I fetched with binance API are not correct
I'm fetching the prices for arbitrage but some of the prices seem correct, some are incorrect. i tried more than 20 ways but cant fix it.
last_data = [["ETHBTC", "BTCPAX", "...