| Crates.io | api-dzengi-rs |
| lib.rs | api-dzengi-rs |
| version | 0.2.1 |
| created_at | 2025-06-24 20:50:28.485701+00 |
| updated_at | 2025-07-03 18:30:45.505983+00 |
| description | Library for interacting with the Dzengi API |
| homepage | |
| repository | https://github.com/MrOldOwl/api-dzengi-rs |
| max_upload_size | |
| id | 1724982 |
| size | 226,131 |
Official information:
This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
cargo add api-dzengi-rs
let settings = UserSettings::new("api_key", "secret");
let mut rest = DzengiRestClient::new().with_user_settings(Some(settings));
let resp = rest
.v1()
.klines(
KlinesRequest::new(
"BTC/USD_LEVERAGE".into(), Interval::FiveMinutes
)
.with_limit(Some(10)),
)
.await?;
println!("{:?}", resp)
| Implemented | Info | API | Method |
|---|---|---|---|
| ✓ | account info | [GET] /api/v#/account | account_info |
| ✓ | trades aggregated | [GET] /api/v#/aggTrades | trades_aggregated |
| ✓ | trading position close | [POST] /api/v#/closeTradingPosition | close_trading_position |
| ✓ | list of currencies | [GET] /api/v#/currencies | currencies |
| ✓ | string of address | [GET] /api/v#/depositAddress | deposit_address |
| ✓ | list of deposits | [GET] /api/v#/deposits | deposits |
| ✓ | order book | [GET] /api/v#/depth | depth |
| ✓ | exchange info | [GET] /api/v#/exchangeInfo | exchange_info |
| ✓ | order | [GET] /api/v#/fetchOrder | fetch_order |
| ✓ | list of funding limits | [GET] /api/v#/fundingLimits | funding_limits |
| ✓ | klines | [GET] /api/v#/klines | klines |
| ✓ | list of ledgers | [GET] /api/v#/ledger | ledger |
| ✓ | leverage settings | [GET] /api/v#/leverageSettings | leverage_settings |
| ✓ | list of trades | [GET] /api/v#/myTrades | my_trades |
| ✓ | list of open orders | [GET] /api/v#/openOrders | open_orders |
| ✓ | create order | [POST] /api/v#/order | order_create |
| ✓ | edit exchange order | [PUT] /api/v#/order | order_change |
| ✓ | cancel order | [DELETE] /api/v#/order | order_cancel |
| ✓ | price change | [GET] /api/v#/ticker/24hr | ticker_24hr |
| ✓ | server time | [GET] /api/v#/time | server_time |
| ✓ | list of fees | [GET] /api/v#/tradingFees | trading_fees |
| ✓ | list of limits | [GET] /api/v#/tradingLimits | trading_limits |
| ✓ | list of leverage trades | [GET] /api/v#/tradingPositions | trading_positions |
| ✓ | list of historical positions | [GET] /api/v#/tradingPositionsHistory | trading_positions_history |
| ✓ | list of transactions | [GET] /api/v#/transactions | transactions |
| ✓ | leverage orders edit | [POST] /api/v#/updateTradingOrder | update_trading_order |
| ✓ | leverage trade edit | [POST] /api/v#/updateTradingPosition | update_trading_position |
| ✓ | list of withdrawals | [GET] /api/v#/withdrawals | withdrawals |
Future versions!