| Crates.io | cbadv |
| lib.rs | cbadv |
| version | 2.0.2 |
| created_at | 2023-06-27 18:12:33.035603+00 |
| updated_at | 2025-01-18 18:02:27.166283+00 |
| description | Asynchronous Coinbase Advanced REST and WebSocket API |
| homepage | https://github.com/Ohkthx/cbadv-rs |
| repository | https://github.com/Ohkthx/cbadv-rs |
| max_upload_size | |
| id | 901508 |
| size | 410,236 |
The cbadv-rs crate provides high-performance, asynchronous access to the Coinbase Advanced REST and WebSocket APIs. This project includes features to securely configure API keys and secrets, making it suitable for developers seeking robust API integration.
This project is currently a work-in-progress. While the crate is usable, API changes or updates may occur as Coinbase Advanced evolves. Please thoroughly test before using in production.
To get started, add this crate to your project using cargo add cbadv or manually add the following to your Cargo.toml:
[dependencies]
cbadv = { git = "https://github.com/ohkthx/cbadv-rs", branch = "main" }
features = ["config"]).Full API documentation is available at docs.rs. You can also find helpful information on crates.io.
Client: use cbadv::{WebSocketClient, WebSocketClientBuilder}
client.connectclient.subscribeclient.unsubscribeclient.listenChannel::STATUS: StatusChannel::CANDLES: CandlesChannel::TICKER: TickerChannel::TICKER_BATCH: Ticker BatchChannel::LEVEL2: Level 2 Market DataChannel::USER: User-Specific UpdatesChannel::MARKET_TRADES: Market TradesChannel::HEARTBEATS: Hearbeat (maintains connection.)Channel::FUTURES_BALANCE_SUMMARY: Balance Summary for Futures.Client: use cbadv::{RestClient, RestClientBuilder}
client.account):
client.account.get_bulkclient.account.getclient.product):
client.product.best_bid_askclient.product.product_bookclient.product.get_bulkclient.product.getclient.product.candlesclient.product.tickerclient.order):
client.order.createclient.order.editclient.order.preview_editclient.order.preview_createclient.order.cancelclient.order.get_bulkclient.order.fillsclient.order.getclient.order.close_positionclient.fee):
client.fee.getclient.convert):
client.convert.create_quoteclient.convert.getclient.convert.commitclient.portfolio):
client.portfolio.createclient.portfolio.get_allclient.portfolio.getclient.portfolio.editclient.portfolio.deleteclient.portfolio.move_fundsclient.payment)
client.payment.get_allclient.payment.getclient.data)
client.data.key_permissionsclient.public):
client.public.timeclient.public.product_bookclient.public.productsclient.public.productclient.public.candlesclient.public.tickerTo enable the configuration feature, include it in your Cargo.toml:
[dependencies]
cbadv = { version = "*", features = ["config"] }
Set up config.toml with your API credentials. A sample file can be found at config.toml.sample. See the custom configuration example for advanced setups.
Explore the examples directory for usage scenarios.
Contributions are welcome! Fork the repository, create a feature branch, and submit a pull request.
Support this project via cryptocurrency donations:
Ethereum (ETH): 0x7d75f6a9c021fcc70691fec73368198823fb0f60
Bitcoin (BTC): bc1q75w3cgutug8qdxw3jlmqnkjlv9alt3jr7ftha0
Binance (BNB): 0x7d75f6a9c021fcc70691fec73368198823fb0f60