api-dzengi-rs

Crates.ioapi-dzengi-rs
lib.rsapi-dzengi-rs
version0.2.1
created_at2025-06-24 20:50:28.485701+00
updated_at2025-07-03 18:30:45.505983+00
descriptionLibrary for interacting with the Dzengi API
homepage
repositoryhttps://github.com/MrOldOwl/api-dzengi-rs
max_upload_size
id1724982
size226,131
(MrOldOwl)

documentation

README

Dzengi

Official information:

Disclaimer

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.

Installation

cargo add api-dzengi-rs

Usage

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)

Endpoints

Rest V1/V2

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

Websocket V1/V2

Future versions!

Commit count: 0

cargo fmt