dwx-zeromq-connector
dwx-zeromq-connector copied to clipboard
[Enhancement Request] expose the trading constants so we can create/modify orders symbolically
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.
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!