dwx-zeromq-connector icon indicating copy to clipboard operation
dwx-zeromq-connector copied to clipboard

[Enhancement Request] expose the trading constants so we can create/modify orders symbolically

Open metaperl opened this issue 4 years ago • 1 comments

the sample code in the README shows how to create a default order but not how to modify such an order. Without enumerated types for the various order properties, we cannot write easy to read code to modify the order.

The constants are even in the code as comments:

         // OP_BUY = 0
         // OP_SELL = 1
         // OP_BUYLIMIT = 2
         // OP_SELLLIMIT = 3
         // OP_BUYSTOP = 4
         // OP_SELLSTOP = 5

but they should be in the code as actual values so someone importing the module can use them.

metaperl avatar Apr 02 '20 15:04 metaperl

Thank you for raising this @metaperl 🙂

You make a good point indeed. We'll escalate this and commit a patch to the code as soon as we can.

Many thanks for your valuable inputs - much appreciated!

integracore2 avatar Apr 16 '20 03:04 integracore2