Facebook
From Alex, 4 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 139
  1. Alex: ~/dev/crypto/ftx-order-test [git:master]
  2. >node index.js
  3. {
  4.   result: {
  5.     avgFillPrice: null,
  6.     clientId: '1587108890720',
  7.     createdAt: '2020-04-17T07:34:51.681553+00:00',
  8.     filledSize: 0,
  9.     future: 'BTC-PERP',
  10.     id: 4700751162,
  11.     ioc: false,
  12.     liquidation: false,
  13.     market: 'BTC-PERP',
  14.     postOnly: false,
  15.     price: 7102,
  16.     reduceOnly: false,
  17.     remainingSize: 0.01,
  18.     side: 'buy',
  19.     size: 0.01,
  20.     status: 'new',
  21.     type: 'limit'
  22.   },
  23.   success: true
  24. }
  25. 7068
  26. 7068
  27. 7068
  28. 7068
  29. 7068
  30. 7068
  31. 7068
  32. 7068
  33. placing orders and terminating
  34. 2020-04-17T07:34:52.832Z [FTX] TERMINATED WS CON
  35. this is where the other orders run, the order id is: 4700751162
  36. closed
  37. closed
  38. 7068
  39. 7136
  40. 2020-04-17T07:34:52.852Z [FTX] CLOSED CON
  41. placing orders and terminating
  42. 2020-04-17T07:34:52.929Z [FTX] TERMINATED WS CON
  43. this is where the other orders run, the order id is: 4700751162
  44. closed
  45. closed
  46. 7068
  47. 7136
  48. placing orders and terminating
  49. 2020-04-17T07:34:53.049Z [FTX] TERMINATED WS CON
  50. this is where the other orders run, the order id is: 4700751162
  51. closed
  52. closed
  53. 7068
  54. 7136
  55. Stop loss place at price 7000
  56. 2020-04-17T07:34:53.055Z [FTX] TERMINATED WS CON
  57. target Placed at undefined
  58. terminating after target
  59. 2020-04-17T07:34:53.101Z [FTX] TERMINATED WS CON