You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,6 +19,7 @@ import { HttpClient } from "./httpClient";
19
19
import{
20
20
ACLSettings,
21
21
Address,
22
+
WhitelistAddress,
22
23
AmountLock,
23
24
Balance,
24
25
Candle,
@@ -824,6 +825,7 @@ export class Client {
824
825
* @param {string} params.newClientOrderId clientOrderId for the new order.
825
826
* @param {string} params.quantity Order quantity.
826
827
* @param {string} [params.price] Required if order type is limit, stopLimit, or takeProfitLimit. Order price.
828
+
* @param {string} [params.stopPrice] Required if order type is stopLimit, stopMarket, takeProfitLimit, or takeProfitMarket. Order price
827
829
* @param {boolean} [params.strictValidate] Optional. Price and quantity will be checked for incrementation within the symbol’s tick size and quantity step. See the symbol's tickSize and quantityIncrement.
828
830
*
829
831
* @returns the new spot order
@@ -834,6 +836,7 @@ export class Client {
834
836
newClientOrderId: string;
835
837
quantity: string;
836
838
price?: string;
839
+
stop_price?: string;
837
840
strictValidate?: boolean;
838
841
}
839
842
): Promise<Order>{
@@ -999,6 +1002,19 @@ export class Client {
999
1002
returnbalance;
1000
1003
}
1001
1004
1005
+
/**
1006
+
* Gets the list of whitelisted addresses
1007
+
*
1008
+
* Requires the "Payment information" API key Access Right
Copy file name to clipboardExpand all lines: lib/websocket/tradingClient.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,7 @@ export class TradingClient extends AuthClient {
177
177
* @param {string} params.newClientOrderId the new client order id for the modified order. must be unique within the trading day
178
178
* @param {string} params.quantity new order quantity
179
179
* @param {string} params.price new order price
180
+
* @param {string} [params.stopPrice] Required if order type is stopLimit, stopMarket, takeProfitLimit, or takeProfitMarket. Order price
180
181
* @param {boolean} [params.strictValidate] price and quantity will be checked for the incrementation with tick size and quantity step. See symbol's tickSize and quantityIncrement
181
182
* @return A promise that resolves with a report of the modified order
182
183
*/
@@ -185,6 +186,7 @@ export class TradingClient extends AuthClient {
0 commit comments