mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add more details to the readme
This commit is contained in:
parent
9f7af3ce82
commit
3ab349f38a
16
README.md
16
README.md
|
@ -53,22 +53,28 @@ go get -u github.com/c9s/bbgo/cmd/bbgo
|
|||
Add your dotenv file:
|
||||
|
||||
```
|
||||
# optional
|
||||
SLACK_TOKEN=
|
||||
|
||||
# optional
|
||||
TELEGRAM_BOT_TOKEN=
|
||||
TELEGRAM_BOT_AUTH_TOKEN=
|
||||
|
||||
# if you have one
|
||||
BINANCE_API_KEY=
|
||||
BINANCE_API_SECRET=
|
||||
|
||||
# if you have one
|
||||
MAX_API_KEY=
|
||||
MAX_API_SECRET=
|
||||
|
||||
# if you have one
|
||||
FTX_API_KEY=
|
||||
FTX_API_SECRET=
|
||||
# specify it if credentials are for subaccount
|
||||
FTX_SUBACCOUNT_NAME=
|
||||
|
||||
# optional, if you have the db setup
|
||||
MYSQL_URL=root@tcp(127.0.0.1:3306)/bbgo?parseTime=true
|
||||
```
|
||||
|
||||
|
@ -220,6 +226,16 @@ then the following types could be injected automatically:
|
|||
- `*bbgo.ExchangeSession`
|
||||
- `types.Market`
|
||||
|
||||
|
||||
## Strategy Execution Phases
|
||||
|
||||
1. Load config from the config file.
|
||||
2. Allocate and initialize exchange sessions.
|
||||
3. Add exchange sessions to the environment (the data layer).
|
||||
4. Use the given environment to initialize the trader object.
|
||||
5. The trader initializes the environment and start the exchange connections.
|
||||
6. Call strategy.Run() method sequentially.
|
||||
|
||||
## Exchange API Examples
|
||||
|
||||
Please check out the example directory: [examples](examples)
|
||||
|
|
Loading…
Reference in New Issue
Block a user