1.Where are the logs stored?
logs are in a DB3 database located in LOGS
folder where the docker is located.
2.How can I get a filled orders list?
exchange.GetOrders()
only get pending orders, and there is no other function to get filled orders. You can use exchange.IO
to access the orgin API if the exchange provides.
3.How can I deploy and update a docker?
Check on https://www.fmz.com/bbs-topic/3649. To update, just download a new docker then deploy it, and delete the old docker on https://www.fmz.com/m/nodes if no bot run on it.
4.What does the error code mean on log page?
Check the code on the exchange API doc. Here is a summary of docs: https://www.fmz.com/bbs-topic/597
5.GetOrders: 400: {“code”:-1121,“msg”:“Invalid symbol.”}
As it says, Invalid symbol
. Check your symbol is spelled correctly.
6.BitMEX 429: {“error”:{“message”:“Rate limit exceeded retry in 1 seconds ……”}}
Rate limit exceeded. BitMEX rate limit is 1 request per second, so be carefull.
7.
symbol not set
when backtesting.
Set contract first before trade on funtures by exchange.SetContractType
.
exchange.SetContractType("swap")
exchange.SetContractType("this_week")
exchange.SetContractType("next_week")
exchange.SetContractType("quarter")
exchange.SetContractType("this_week")
exchange.SetContractType("next_week")
exchange.SetContractType("quarter")
exchange.SetContractType("XBTUSD")
exchange.SetContractType("XBTM19")
exchange.SetContractType("swap")
exchange.SetContractType("BTC-PERPETUAL")
exchange.SetContractType("BTC-27APR18")
8.Why does the data returned by the
TA
indicator function start withnull
?
TA function, such as TA.MA(records,10)
, requires at least 10 K-lines to calculate MA, thus the first 10 data of MA is null
.
小草 I will keep update this post