Due to the direct use of Binance Public API Connector Rust, only Binance is currently supported.
The following picture is the structure diagram of the project divided by modules.
The following is execution flow:
- System: Ubuntu 22.04
- Language: Rust 1.75
- Dependencies: pkg-config, libssl-dev, libpq, postgresql, poetry
./rsquant.sh setup
./rsquant.sh build
- Images: Ubuntu 22.04
./rsquant.sh setup-docker
./rsquant.sh setup
./rsquant.sh build
Before using it, you need to configure it correctly in the config file.
# File location: "$XDG_CONFIG_HOME/rsquant/config.toml"
[api_credentials.binance]
signature_type="HMAC"
api_key="<your-api-key>"
api_secret="<your-api-secret>"
[email]
from_email="Quant Trader <xxxx@gmail.com>"
to_emails=["hnlcf <xxxx@gmail.com>"]
from_passwd="xxxx"
smtp_addr="smtp.gmail.com"
[network.proxy]
# https_proxy="<protocol>://<proxy-host>:<port>"
[log]
log_path="log/output.log"
[database.postgresql]
pg_addr="postgres://postgres:postgres@localhost:5432/rsquant_db"
api_credentials
: It is your credentials manually generated in Binance account, and currently only supports HMAC.email
: You can set the sender's email account(from_email
), password(from_passwd
), server address(smtp_addr
) and subscriber's email list(to_emails
).network.proxy
(Optional): You can set the address of the network proxy.log
: You need to set the path of log file (The path must be exists).database.postgresql
: You need to set the address of postgresql database.
./rsquant.sh run
./rsquant.sh web