#[cfg(doctest)]
#[doc = include_str!("../README.md")]
struct ReadmeDoctests;
pub mod account;
pub mod api;
pub mod client;
pub mod core;
pub mod error;
pub mod request;
pub mod types;
pub mod utils;
#[cfg(feature = "ws")]
pub mod ws;
pub use core::chain::{Chain, Contracts};
pub use account::{Account, AccountConfig, Credentials, Signer, Wallet};
#[cfg(feature = "keychain")]
pub use account::{save_private_key_to_keychain, KEYCHAIN_SERVICE};
pub use api::{
account::{
BalanceAllowanceResponse, BuilderTrade, ListBuilderTrades, ListBuilderTradesResponse,
ListClobTrades, ListTradesResponse, MakerOrder, Trade,
},
auth::{
ApiKeyInfo, ApiKeyResponse, BuilderApiKeyResponse, ClosedOnlyResponse,
ReadonlyApiKeyResponse, ValidateKeyResponse,
},
health::{Health, ServerTimeResponse},
markets::{
BatchPricesHistoryRequest, BatchPricesHistoryResponse, BookParams, CalculatePriceResponse,
ClobMarketDetails, ClobRewards, ClobToken, FeeDetails, LastTradePriceResponse,
ListClobMarkets, ListMarketsResponse, LiveActivityMarket, Market, MarketByTokenResponse,
MarketPrice, MarketToken, MidpointResponse, OrderBook, OrderLevel, PriceHistoryPoint,
PriceResponse, PricesHistoryQuery, PricesHistoryResponse, SpreadResponse,
},
notifications::Notification,
orders::{
BatchCancelResponse, ListOrders, ListOrdersResponse, OpenOrder, OrderResponse,
OrderScoringResponse,
},
rewards::{
ListMultiRewardMarkets, ListRewardMarkets, ListUserRewardMarkets, MultiMarketOrderBy,
Paginated, PublicRewards, RebatedFees, RewardEarnings, RewardMarket, RewardMarketEarning,
RewardMarketRequest, RewardPercentages, RewardTotalEarnings, SortPosition,
UserEarningsRequest, UserPercentagesRequest, UserRewardMarketOrderBy,
UserTotalEarningsRequest,
},
};
pub use client::{Clob, ClobBuilder, CreateOrderParams, SignedOrderPayload};
pub use error::ClobError;
pub use types::{
Order, OrderKind, OrderSide, ParseTickSizeError, PartialCreateOrderOptions, SignatureType,
SignedOrder, TickSize,
};