pip3 install btsbots --upgrade
配置 config.json 文件,指定钱包API地址等信息,可参考以下链接: "addition_spread": 0.005,
"threshold": 0.01,
"price_factor": {
"CNY": 1.0,
"USD": 1.05
}
btsbots --config config.json run_trade
4. 需要充值才能激活使用,测试阶段不收成交手续费,每个市场每天收费1美元,可接受所有锚定资产,按市价换算成美元计算。btsbots --config config.json recharge 1 USD
5. 充值完后还无法交易,需要上传自己的交易信息。{
"quota_in_usd": 100,
"market": [
["BTS", "TCNY"],
["BTS", "USD"]
],
"asset": {
"BTS": {
"weight": 3.0,
"spread": [0.007, 0.12]
},
"TCNY": {
"weight": 1.0,
"spread": [0.005, 0.08]
},
"USD": {
"weight": 1.0,
"spread": [0.005, 0.1]
}
}
}
配置完后,运行以下命令上传配置文件btsbots --config config.json --profile profile.json update_profile
当上传完毕后,回到交易客户端,可以看到相关信息,正常情况就会开始下单了
{
"account": "exchange.btsbots",
"cli_wallet": {
"host" : "localhost",
"port" : 9092,
"rpc_user" : "",
"rpc_passwd" : "",
"wallet_unlock" : ""
},
"addition_spread": 0.01,
"threshold": 0.01,
"price_factor": {
"CNY": 1.0,
"BTS": 1.00,
"USD": 1.05
}
}
profile.json{
"quota_in_usd": 50,
"market": [
["BTS", "BOTSCNY"]
],
"asset": {
"BTS": {
"weight": 8.0,
"spread": [0.007, 0.12]
},
"BOTSCNY": {
"weight": 4.0,
"spread": [0.005, 0.1]
},
"CNY": {
"weight": 2.0,
"spread": [0.005, 0.1]
},
"USD": {
"weight": 2.0,
"spread": [0.005, 0.1]
},
"GOLD": {
"weight": 1.0,
"spread": [0.005, 0.1]
},
"SILVER": {
"weight": 1.0,
"spread": [0.005, 0.1]
}
}
}
手续费成本怎么样下单手续费吗?现在是10BTS每单,如果是VIP用户,成本是2BTS。如果下单没成交,取消好像会返回,这点还不确认。
不管是不是“VIP用户”,下单手续费10BTS,撤单全额返还。手续费成本怎么样下单手续费吗?现在是10BTS每单,如果是VIP用户,成本是2BTS。如果下单没成交,取消好像会返回,这点还不确认。
下单频率可以调整的,threshold 参数设为 0.01,价格偏离超过0.01 才重新下单,代码中做了很多滤波算法处理过滤无必要的频繁下单