v3.2.1: add instrument info response type. add cursor example with unified margin request

This commit is contained in:
tiagosiebler
2022-11-15 15:26:57 +00:00
parent 42a9ef10d7
commit c46645713e
5 changed files with 78 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
export * from './shared';
export * from './spot';
export * from './usdt-perp';
export * from './unified-margin';

View File

@@ -0,0 +1,38 @@
export interface UMLeverageFilter {
minLeverage: string;
maxLeverage: string;
leverageStep: string;
}
export interface UMPriceFilter {
minPrice: string;
maxPrice: string;
tickSize: string;
}
export interface UMLotSizeFilter {
maxTradingQty: string;
minTradingQty: string;
qtyStep: string;
}
export interface UMInstrumentInfo {
symbol: string;
contractType: string;
status: string;
baseCoin: string;
quoteCoin: string;
launchTime: string;
deliveryTime: string;
deliveryFeeRate: string;
priceScale: string;
leverageFilter: UMLeverageFilter;
priceFilter: UMPriceFilter;
lotSizeFilter: UMLotSizeFilter;
}
export interface UMInstrumentInfoResult {
category: string;
list: UMInstrumentInfo[];
nextPageCursor: string;
}