ctubio / tribeca

Self-hosted crypto trading bot (automated high frequency market making) in node.js, angular, typescript and c++
https://127.0.0.1:3000
Other
95 stars 26 forks source link

Ping or Pong on open orders #124

Closed zachaller closed 7 years ago

zachaller commented 7 years ago

Not sure if this is something anybody would want but I think it would be nice to have a column on the open orders that say weather it is a Ping or a Pong if that is possible I do not know if it is tribeca knows before it places an order if it is a Ping or a Pong

ctubio commented 7 years ago

morning'¡ a sell order is always a pong when buyPing is non-zero, and also a buy order is always a pong when sellPing is non-zero. otherwise if buyPing is zero then sell orders are pings, and if sellPing is zero buy orders are pings.

hope having this info avoids the need of a column in the orders grid.

ctubio commented 7 years ago

anyway ima try to add this info to side column someday somehow, thanks for the idea'¡

(:bulb: would be nice to attach the related trade id of the ping into the pong quote, so no need to recalculated the matching ping after complete pong orders)