feat(#99): introduce spot REST client

This commit is contained in:
tiagosiebler
2021-08-15 12:12:10 +01:00
parent 10ac2ec384
commit 72c7630a29
7 changed files with 449 additions and 7 deletions

18
src/types/spot.ts Normal file
View File

@@ -0,0 +1,18 @@
export type OrderSide = 'Buy' | 'Sell';
export type OrderTypeSpot = 'LIMIT' | 'MARKET' | 'LIMIT_MAKER';
export type OrderTimeInForce = 'GTC' | 'FOK' | 'IOC';
export interface NewSpotOrder {
symbol: string;
qty: number;
side: OrderSide;
type: OrderTypeSpot;
timeInForce?: OrderTimeInForce;
price?: number;
orderLinkId?: string;
}
export interface SpotOrderQueryById {
orderId?: string;
orderLinkId?: string;
}