Registry / finance / binance-futures-connector

binance-futures-connector

JSON →
library4.2.0pypypiunverified

A deprecated lightweight Python connector for the Binance Futures public API. Version 4.2.0 supports Python >=3.7. The library is in maintenance mode; users are encouraged to migrate to binance-connector for unified Spot and Futures support.

pip install binance-futures-connector
INSTALL
IMPORT
SIG · BINANCE-FUTURES-CO
B
binance-futures-connector
financepythonv4.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
✓ from binance import Client
✗ from binance.futures import Client

Initialize client with API keys (use testnet for development), fetch server time and ticker price.

import os from binance.futures import Client api_key = os.environ.get('BINANCE_API_KEY', '') secret_key = os.environ.get('BINANCE_SECRET_KEY', '') client = Client(api_key=api_key, secret_key=secret_key, testnet=True) # Get server time server_time = client.get_server_time() print(server_time) # Get ticker price prices = client.ticker_price(symbol='BTCUSDT') print(prices)
Debug
Known issues
deprecatedThis library is deprecated. New projects should use binance-connector which supports both Spot and Futures.
fix
Switch to the binance-connector library. See migration guide at https://github.com/binance/binance-connector-python
affects: >=1.0.0
gotchaImport path is 'from binance.futures import ...', not 'from binance_futures import ...'.
fix
Use correct import: from binance.futures import Client
affects: >=1.0.0
gotchaThe library uses old websocket library (websocket-client) and may have different method signatures than binance-connector.
fix
If migrating, note that WebSocket methods may differ. Refer to binance-connector documentation.
affects: >=1.0.0
Upgrade
Version history
4.2.0latest on PyPI · released Apr 30, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
websocket-clientrequiredWebSocket stream support
Agent activity
60 hits · last 30 days
node
54
Perplexity
1
OpenAI (training)
1
Resources
binance-futures-connector — pip install binance-futures-connector · libregistry