v3.3.9: fix copy trading close order endpoint. add ws log for topic sub request. add example for rest copy closing.
This commit is contained in:
@@ -85,9 +85,10 @@ export class CopyTradingClient extends BaseRestClient {
|
||||
closeOrder(
|
||||
params: CopyTradingCloseOrderRequest
|
||||
): Promise<APIResponseV3<any>> {
|
||||
return this.postPrivate('/contract/v3/private/copytrading/order/close', {
|
||||
params,
|
||||
});
|
||||
return this.postPrivate(
|
||||
'/contract/v3/private/copytrading/order/close',
|
||||
params
|
||||
);
|
||||
}
|
||||
|
||||
/** -> Positions API */
|
||||
|
||||
@@ -788,7 +788,13 @@ export class WebsocketClient extends EventEmitter {
|
||||
|
||||
// TODO: persistence not working yet for spot v1 topics
|
||||
if (wsKey !== WS_KEY_MAP.spotPublic && wsKey !== WS_KEY_MAP.spotPrivate) {
|
||||
this.requestSubscribeTopics(wsKey, [...this.wsStore.getTopics(wsKey)]);
|
||||
const topics = [...this.wsStore.getTopics(wsKey)];
|
||||
this.logger.info('Subscribing to topics', {
|
||||
...loggerCategory,
|
||||
wsKey,
|
||||
topics,
|
||||
});
|
||||
this.requestSubscribeTopics(wsKey, topics);
|
||||
}
|
||||
|
||||
this.wsStore.get(wsKey, true)!.activePingTimer = setInterval(
|
||||
|
||||
Reference in New Issue
Block a user