Forked from this price taking bot and heavily reliant on vega rust sdk.
It so simple it will certainly lose money as it is now. There are only two cases when it will not lose money.
- Set the
dryrun
config parameter set totrue
. In that case it won't send any transactions. - Run it against a vega testnet.
Get rust and cargo setup on your platform.
Use cd
to get into the same dir as this README.md
.
Run
cargo build
You will see some warnings. One day they'll get cleaned up.
Can be found in config-sample.json
. You'll need to put your mnemonic in the json file. Do you trust this code?
Inspect the code and make sure it's not sending your key mnemonic somewhere (are you really, really sure)?!?
Run
RUST_LOG=info ./target/debug/basic_mm_bot --config=../secrets/config-btcusd.json