UNPKG

@huangapple/okx-api

Version:

Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests.

33 lines (32 loc) 790 B
import { InstrumentType } from '../shared'; export interface SetLeverageRequest { instId?: string; ccy?: string; lever: string; mgnMode: 'isolated' | 'cross'; posSide?: 'long' | 'short'; } export interface ChangePositionMarginRequest { instId: string; posSide: 'long' | 'short' | 'net'; type: 'add' | 'reduce'; amt: string; ccy?: string; auto?: boolean; loanTrans?: boolean; } export interface GetPositionsParams { instType?: InstrumentType; instId?: string; posId?: string; } export interface GetHistoricPositionParams { instType?: InstrumentType; instId?: string; mgnMode?: string; type?: string; posId?: string; after?: string; before?: string; limit?: string; }