Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 730 Bytes

api.md

File metadata and controls

17 lines (13 loc) · 730 Bytes

exec(strategy, wsManager, args)

Execute a strategy on a live market

Kind: global function

Param Type Description
strategy Object as created by define() from bfx-hf-strategy
wsManager Object WSv2 pool instance from bfx-api-node-core
args Object execution parameters
args.symbol string market to execute on
args.tf string time frame to execute on
args.includeTrades boolean if true, trade data is subscribed to and processed
args.seedCandleCount number size of indicator candle seed window, before which trading is disabled