pulse-binance
Binance adapter for PULSE Protocol.
Trade, query prices, manage orders — all through PULSE semantic messages.
Install
pip install pulse-binance
Quick Start
from pulse import PulseMessage
from pulse_binance import BinanceAdapter
adapter = BinanceAdapter(api_key="...", api_secret="...")
# Get BTC price
msg = PulseMessage(
action="ACT.QUERY.DATA",
parameters={"symbol": "BTCUSDT"}
)
response = adapter.send(msg)
print(response.content["parameters"]["result"]["price"])
# Place a market buy order
msg = PulseMessage(
action="ACT.TRANSACT.REQUEST",
parameters={"symbol": "BTCUSDT", "side": "BUY", "quantity": 0.001}
)
response = adapter.send(msg)
print(response.content["parameters"]["result"]["status"])
Supported Actions
| PULSE Action | What it does |
|---|---|
ACT.QUERY.DATA |
Get price, 24h stats, klines, order book |
ACT.TRANSACT.REQUEST |
Place order (MARKET/LIMIT, BUY/SELL) |
ACT.CANCEL |
Cancel an order |
ACT.QUERY.STATUS |
Check order status |
ACT.QUERY.LIST |
List open orders |
ACT.QUERY.BALANCE |
Get account balances |
Switch Exchanges in One Line
# from pulse_binance import BinanceAdapter as Exchange
from pulse_bybit import BybitAdapter as Exchange
adapter = Exchange(api_key="...", api_secret="...")
# Everything else stays the same
License
Apache 2.0
Metadata
Release files for pulse-binance 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulse_binance-0.1.0.tar.gz | 7.9 kB | Without provenance | Details for pulse_binance-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pulse_binance-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pulse_binance-0.1.0-py3-none-any.whl |
Total release size: 14.2 kB
Release files / pulse_binance-0.1.0.tar.gz
| Download URL | pulse_binance-0.1.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4fddb9b132a211d1a9d3989f542ea93c63944121a01610aeb3d2547db24d2db
|
|
BLAKE2b-256 checksum How to use checksums |
2eb90d14b524f0124dab6c5933ad4096b4a9be66f8b9c17dc6969978a90b2d6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / pulse_binance-0.1.0-py3-none-any.whl
| Download URL | pulse_binance-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dae5ef1511b4d398a4ea7c8f6321d20a83c54b613e6f72eaf060172db0f3f00
|
|
BLAKE2b-256 checksum How to use checksums |
e3eff83cc8a8a4a094ea0c8a65d77fd09b6526ab3d2960f98b048d16dcca4d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for pulse-binance 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.