pub struct Client {Show 31 fields
pub api_url: String,
pub ws_url: String,
pub default_sub_account_id: Option<String>,
pub default_account_id: Option<String>,
pub catalogs: Arc<Manager>,
pub realtime: Client,
pub auth: AuthService,
pub market_data: MarketDataService,
pub market_overview: MarketOverviewService,
pub zipper: ZipperService,
pub chain_analytics: ChainAnalyticsService,
pub heatmap: HeatmapService,
pub lifecycle: LifecycleService,
pub balances: BalancesService,
pub orderbook: OrderbookService,
pub orders: OrdersService,
pub trades: TradesService,
pub triggers: TriggersService,
pub transfers: TransfersService,
pub internal_transfers: InternalTransfersService,
pub deposit: DepositService,
pub api_keys: ApiKeysService,
pub policies: PoliciesService,
pub sub_accounts: SubAccountsService,
pub address_book: AddressBookService,
pub social_verification: SocialVerificationService,
pub whiteboard: WhiteboardService,
pub polychart: PolychartService,
pub layout: LayoutService,
pub guard_signer: GuardSignerService,
pub withdraw: WithdrawService,
/* private fields */
}Expand description
Async Polyester SDK entrypoint.
Fields§
§api_url: String§ws_url: String§default_sub_account_id: Option<String>§default_account_id: Option<String>§catalogs: Arc<Manager>§realtime: Client§auth: AuthService§market_data: MarketDataService§market_overview: MarketOverviewService§zipper: ZipperService§chain_analytics: ChainAnalyticsService§heatmap: HeatmapService§lifecycle: LifecycleService§balances: BalancesService§orderbook: OrderbookService§orders: OrdersService§trades: TradesService§triggers: TriggersService§transfers: TransfersService§internal_transfers: InternalTransfersService§deposit: DepositService§api_keys: ApiKeysService§policies: PoliciesService§sub_accounts: SubAccountsService§address_book: AddressBookService§whiteboard: WhiteboardService§polychart: PolychartService§layout: LayoutService§guard_signer: GuardSignerService§withdraw: WithdrawServiceImplementations§
Source§impl Client
impl Client
pub fn new(config: Config) -> Result<Self>
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Build from POLYESTER_API_KEY_ID / POLYESTER_API_PRIVATE_KEY / POLYESTER_ACCOUNT_ID.
Sourcepub async fn hydrate_catalogs(&self) -> Result<()>
pub async fn hydrate_catalogs(&self) -> Result<()>
Hydrate spot + zipper catalogs. Returns an error when either fetch or parse leaves catalogs unusable.
Sourcepub async fn wait_for_catalogs(&self) -> Result<()>
pub async fn wait_for_catalogs(&self) -> Result<()>
Sourcepub fn catalogs_last_error(&self) -> Option<Error>
pub fn catalogs_last_error(&self) -> Option<Error>
Most recent catalog hydration error, if any.
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more