Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const client = {
  2.   id: 'number',
  3.   firstName: 'string',
  4.   lastName: 'string',
  5.   funds: 'number',
  6.   instruments: {
  7.     instrumentSymbol: {
  8.       win: 'number',
  9.       loss: 'number'
  10.     }
  11.     // more instrument symbols...
  12.   }
  13. };
  14.  
  15. const order = {
  16.   id: 'number',
  17.   clientId: 'number',
  18.   tradeType: 'BUY/SELL',
  19.   orderType: 'MARKET/LIMIT',
  20.   price: 'number',
  21.   quantity: 'number',
  22.   filled: 'number',
  23.   status: 'PENDING/FILLED/WORKING/CANCELED',
  24. };
  25.  
  26. const instrument = {
  27.   symbol: 'the symbol of the instrument',
  28.   name: 'string',
  29.   orders: ['array of orders...'],
  30. };
  31.  
  32. const orderBook = {
  33.   statistics: {
  34.     totalInstruments: 'number',
  35.     totalBuyOrders: 'number',
  36.     totalSellOrders: 'number',
  37.     totalTrades: 'number',
  38.   },
  39.   instruments: [''],
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement