Skip to content

Commit

Permalink
(feature) tag HF orders, bump version to 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rno committed Oct 24, 2018
1 parent c7cc55a commit c6cfbf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/host/events/submit_all_orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ module.exports = async (aoHost, gid, orders, delay) => {
const o = _orders[i]
o.gid = +gid

if (!o.meta) o.meta = {}

if (_isFunction(genOrderLabel)) {
o.meta = {
label: genOrderLabel(state)
}
o.meta.label = genOrderLabel(state)
}

o.meta._HF = 1

debug(
'submitting order %s %f @ %f [gid %d]',
o.type, o.amount, o.price, o.cid, o.gid
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-hf-algo",
"version": "1.0.5",
"version": "1.0.6",
"description": "HF Algorithmic Order Module",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit c6cfbf5

Please sign in to comment.