forked from coinbase/coinbase-pro-trading-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Messages clean up ordertype property (coinbase#170)
* Messages.ts: documentation improvements. Remove documentation on the orderType property which NewOrderMessage doesn't have. orderType only appears in PlaceOrderMessage and TradeExecutedMessage, so add it there. Also add comments on TradeFinalizedMessage and MyOrderPlacedMessage. * Remove MyOrderPlacedMessage's orderType field. GDAX's 'open' feed message doesn't contain an order type: { type: 'open', side: 'buy', price: '10015.99000000', order_id: '3c551481-c7c1-48e9-a820-d7287348f861', remaining_size: '0.01000000', product_id: 'BTC-USD', sequence: 16899268, user_id: '59c806a6e71206025e1e274c', profile_id: '12ad580d-81b8-4ee1-b4dc-ad6d02206412', time: '2018-03-11T00:26:16.842000Z' } } Additionally, the code as it currently stands always sets the orderType field to 'open' which has no meaning, so delete the property. * Add OrderType type and use it in {PlaceOrder,TradeExecuted}Message.
- Loading branch information
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters