add v5 leverage token and spot margin endpoints

This commit is contained in:
tiagosiebler
2023-02-17 11:09:26 +00:00
parent d4add6d964
commit 6d9e73bdda
6 changed files with 208 additions and 7 deletions

View File

@@ -14,3 +14,4 @@ export * from './v5-market';
export * from './v5-position';
export * from './v5-trade';
export * from './v5-user';
export * from './v5-spot-leverage-token';

View File

@@ -0,0 +1,23 @@
import { LTOrderTypeV5 } from '../v5-shared';
export interface PurchaseSpotLeveragedTokenParamsV5 {
ltCoin: string;
ltAmount: string;
serialNo?: string;
}
export interface RedeemSpotLeveragedTokenParamsV5 {
ltCoin: string;
quantity: string;
serialNo?: string;
}
export interface GetSpotLeveragedTokenOrderHistoryParamsV5 {
ltCoin?: string;
orderId?: string;
startTime?: number;
endTime?: number;
limit?: number;
ltOrderType?: LTOrderTypeV5;
serialNo?: string;
}