mod auth;
mod rest;
mod ws;
pub mod futures;
pub mod spot;
pub mod models;
pub(crate) mod endpoints;
pub use auth::Credentials;
pub use rest::client::RestClient;
pub use futures::FuturesClient;
pub use rest::error::AsterDexError;
pub use rest::response::ApiResponse;
pub use ws::client::{UserDataStream, WebSocketClient, WebSocketStream};
pub use futures::models::trading::{
CancelOrderParams, CancelOrderResponse, EmptyResponse, ListenKeyResponse, ModifyOrderParams,
OrderResponse, PlaceOrderParams, PositionResponse,
};
pub use futures::models::market::{
AggTrade, BookTickerResponse, BookTickerShape, DepthResponse, ExchangeAsset,
ExchangeInfoResponse, FundingInfoResponse, IndexReference, IndexReferencesResponse, Kline,
KlineInterval, MarkPriceResponse, MarkPriceShape, PingResponse, ServerTimeResponse,
SymbolInfo, Ticker24hrResponse, Ticker24hrShape, TickerPriceResponse, TickerPriceShape,
TradeRecord,
};
pub use futures::models::account::{
AccountAsset, AccountInfoResponse, AccountPosition, Balance, LeverageBracket,
PositionMarginHistoryRecord, SetLeverageResponse,
};
pub use futures::models::websocket::WebSocketMessage;
pub use futures::models::user_data::{
ListenKeyExpiredEvent, MarginCallEvent, MarginCallPosition, TradeProEvent, UserDataEvent,
};