bbgo_origin/doc/commands/bbgo_pnl.md

53 lines
1.9 KiB
Markdown
Raw Normal View History

## bbgo pnl
2022-06-08 15:17:11 +00:00
Average Cost Based PnL Calculator
### Synopsis
This command calculates the average cost-based profit from your total trades
```
bbgo pnl [flags]
```
### Options
```
2022-07-10 07:29:19 +00:00
-h, --help help for pnl
--include-transfer convert transfer records into trades
--limit uint number of trades
--session stringArray target exchange sessions
--since string query trades from a time point
--symbol string trading symbol
--sync sync before loading trades
```
### Options inherited from parent commands
```
--binance-api-key string binance api key
--binance-api-secret string binance api secret
--config string config file (default "bbgo.yaml")
2022-06-09 18:52:54 +00:00
--cpu-profile string cpu profile
--debug debug mode
--dotenv string the dotenv file you want to load (default ".env.local")
2023-06-29 09:19:22 +00:00
--log-formatter string configure log formatter
--max-api-key string max api key
--max-api-secret string max api secret
--metrics enable prometheus metrics
--metrics-port string prometheus http server port (default "9090")
--no-dotenv disable built-in dotenv
2022-12-23 05:08:05 +00:00
--rollbar-token string rollbar token
--slack-channel string slack trading channel (default "dev-bbgo")
--slack-error-channel string slack error channel (default "bbgo-error")
--slack-token string slack token
--telegram-bot-auth-token string telegram auth token
--telegram-bot-token string telegram bot token from bot father
```
### SEE ALSO
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
2024-08-21 06:42:58 +00:00
###### Auto generated by spf13/cobra on 21-Aug-2024