Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Improved WebSocketFullReceivedMessage to handle market orders too
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoelr committed Sep 19, 2021
1 parent 18b8245 commit 5595d80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/client/WebSocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,14 @@ export interface WebSocketL2UpdateMessage {

export interface WebSocketFullReceivedMessage extends WebSocketUserMessage {
client_oid: string;
funds?: string;
order_id: string;
order_type: string;
price: string;
order_type: 'limit' | 'market';
price?: string;
product_id: string;
sequence: number;
side: OrderSide;
size: string;
size?: string;
time: ISO_8601_MS_UTC;
type: WebSocketResponseType.FULL_RECEIVED;
}
Expand Down

0 comments on commit 5595d80

Please sign in to comment.