Skip to content

davidsiska-vega/vega_mm_bot_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple market making bot for vega

Forked from this price taking bot and heavily reliant on vega rust sdk.

Good to know

It so simple it will certainly lose money as it is now. There are only two cases when it will not lose money.

  1. Set the dryrun config parameter set to true. In that case it won't send any transactions.
  2. Run it against a vega testnet.

Building

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.

Configuration example for the BTC/USD-PERP market:

Can be found in config-sample.json. You'll need to put your mnemonic in the json file. Do you trust this code?

Running

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 

About

A simple MM for vega coded in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages