UNPKG

okex-api

Version:

A modern, asynchronous, and easy-to-use [Okx API](https://www.okx.com/docs-v5) wrapper for Node.js/bun/Web Browser/Cloudflare workers.

34 lines (33 loc) 763 B
type AccountType = '6' | '18'; export interface SubAccountTransferRequest { ccy: string; amt: string; from: AccountType; to: AccountType; fromSubAccount: string; toSubAccount: string; loanTrans?: boolean; omitPosRisk?: boolean; } export interface GetSubAccountMaxWithdrawalsRequest { subAcct: string; ccy?: string; } export interface GetManagedSubAccountTransferHistoryRequest { ccy?: string; type?: '0' | '1'; subAcct?: string; subUid?: string; after?: string; before?: string; limit?: string; } export interface LoanAllocation { subAcct: string; loanAlloc: string; } export interface SetSubAccountLoanAllocationRequest { enable: boolean; alloc?: LoanAllocation[]; } export {};