Merge branch 'master' into wsapi
This commit is contained in:
@@ -19,6 +19,8 @@ export interface OrderParamsV5 {
|
||||
orderType: OrderTypeV5;
|
||||
qty: string;
|
||||
marketUnit?: 'baseCoin' | 'quoteCoin';
|
||||
slippageToleranceType?: string;
|
||||
slippageTolerance?: string;
|
||||
price?: string;
|
||||
triggerDirection?: 1 | 2;
|
||||
orderFilter?: OrderFilterV5;
|
||||
|
||||
@@ -42,6 +42,8 @@ export interface AccountOrderV5 {
|
||||
stopOrderType: StopOrderTypeV5;
|
||||
orderIv: string;
|
||||
marketUnit: 'baseCoin' | 'quoteCoin';
|
||||
slippageToleranceType: string;
|
||||
slippageTolerance: string;
|
||||
triggerPrice: string;
|
||||
takeProfit: string;
|
||||
stopLoss: string;
|
||||
|
||||
@@ -64,6 +64,7 @@ interface SignedRequest<T> {
|
||||
interface UnsignedRequest<T> {
|
||||
originalParams: T;
|
||||
paramsWithSign: T;
|
||||
serializedParams: string;
|
||||
sign?: string;
|
||||
timestamp?: number;
|
||||
recvWindow?: number;
|
||||
@@ -276,7 +277,9 @@ export default abstract class BaseRestClient {
|
||||
return {
|
||||
...options,
|
||||
headers,
|
||||
params: signResult.originalParams,
|
||||
url: signResult.serializedParams
|
||||
? options.url + '?' + signResult.serializedParams
|
||||
: options.url,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user