https://bitsharestalk.org/index.php/topic,20835.msg269215.html#msg269215I have redesign the whole architecture, now we can provide trading robot service
This trading robot is used to provide market making services.
1. get source from each exchange, got a basic bid/ask price.
2. according to each asset's weights and some parameters, we got another premium.
3. Finally, according to the additional premium individual local settings, and the additional price peg parameter, we got the last price
During the test, it is suggested keep a small balance at the account.
use it with follow step :
1. run a cli wallet, and import your trade account.
2. install the btsbots client
pip3 install btsbots --upgrade
edit config.json, reference:
https://github.com/pch957/btsbots/blob/master/config-example.json3. run the trade bots, you can see some output from the console
btsbots --config config.json run_trade
4. you need to recharge for the service, now it's 1USD/per day for each market.
we will not charge fees for filled order during test period.
accept all peg assets for recharge.
run command at a new console, and you can see infomation from last console
btsbots --config config.json recharge 1 USD
5. after recharge, you can upload your profile.json for the trade
reference:
https://github.com/pch957/btsbots/blob/master/profile-example.jsonrun command to upload profile
btsbots --config config.json --profile profile.json update_profile
after the profile upload success, you can see output from the 1st console, and the trade will begin.
we support all peg asset, and BOTSCNY, TRADE.BTC, OPENBTC, METAEX.BTC now
for now, account exchange.btsbots is test this bots at market BOTSCNY/BTS
you can visit the bot's orders. and here is the config.json profile.json used now
config.json
{
"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]
}
}
}