mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
add cmd-doc makefile target and update cmd doc files
This commit is contained in:
parent
3f8f17b1de
commit
f839cb898d
6
Makefile
6
Makefile
|
@ -131,7 +131,11 @@ pkg/version/dev.go: .FORCE
|
||||||
dev-version: pkg/version/dev.go
|
dev-version: pkg/version/dev.go
|
||||||
git commit $< -m "update dev build version"
|
git commit $< -m "update dev build version"
|
||||||
|
|
||||||
version: pkg/version/version.go pkg/version/dev.go migrations
|
cmd-doc: .FORCE
|
||||||
|
go run ./cmd/update-doc
|
||||||
|
git add -v doc/commands
|
||||||
|
|
||||||
|
version: pkg/version/version.go pkg/version/dev.go migrations cmd-doc
|
||||||
git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true
|
git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true
|
||||||
[[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1)
|
[[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1)
|
||||||
git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add $(VERSION) release note" || true
|
git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add $(VERSION) release note" || true
|
||||||
|
|
|
@ -39,6 +39,7 @@ bbgo [flags]
|
||||||
* [bbgo cancel-order](bbgo_cancel-order.md) - cancel orders
|
* [bbgo cancel-order](bbgo_cancel-order.md) - cancel orders
|
||||||
* [bbgo deposits](bbgo_deposits.md) - A testing utility that will query deposition history in last 7 days
|
* [bbgo deposits](bbgo_deposits.md) - A testing utility that will query deposition history in last 7 days
|
||||||
* [bbgo execute-order](bbgo_execute-order.md) - execute buy/sell on the balance/position you have on specific symbol
|
* [bbgo execute-order](bbgo_execute-order.md) - execute buy/sell on the balance/position you have on specific symbol
|
||||||
|
* [bbgo get-order](bbgo_get-order.md) - Get order status
|
||||||
* [bbgo kline](bbgo_kline.md) - connect to the kline market data streaming service of an exchange
|
* [bbgo kline](bbgo_kline.md) - connect to the kline market data streaming service of an exchange
|
||||||
* [bbgo list-orders](bbgo_list-orders.md) - list user's open orders in exchange of a specific trading pair
|
* [bbgo list-orders](bbgo_list-orders.md) - list user's open orders in exchange of a specific trading pair
|
||||||
* [bbgo market](bbgo_market.md) - List the symbols that the are available to be traded in the exchange
|
* [bbgo market](bbgo_market.md) - List the symbols that the are available to be traded in the exchange
|
||||||
|
@ -46,7 +47,7 @@ bbgo [flags]
|
||||||
* [bbgo orderupdate](bbgo_orderupdate.md) - Listen to order update events
|
* [bbgo orderupdate](bbgo_orderupdate.md) - Listen to order update events
|
||||||
* [bbgo pnl](bbgo_pnl.md) - pnl calculator
|
* [bbgo pnl](bbgo_pnl.md) - pnl calculator
|
||||||
* [bbgo run](bbgo_run.md) - run strategies from config file
|
* [bbgo run](bbgo_run.md) - run strategies from config file
|
||||||
* [bbgo submit-order](bbgo_submit-order.md) - submit limit order to the exchange
|
* [bbgo submit-order](bbgo_submit-order.md) - place limit order to the exchange
|
||||||
* [bbgo sync](bbgo_sync.md) - sync trades and orders history
|
* [bbgo sync](bbgo_sync.md) - sync trades and orders history
|
||||||
* [bbgo trades](bbgo_trades.md) - Query trading history
|
* [bbgo trades](bbgo_trades.md) - Query trading history
|
||||||
* [bbgo tradeupdate](bbgo_tradeupdate.md) - Listen to trade update events
|
* [bbgo tradeupdate](bbgo_tradeupdate.md) - Listen to trade update events
|
||||||
|
@ -54,4 +55,4 @@ bbgo [flags]
|
||||||
* [bbgo userdatastream](bbgo_userdatastream.md) - Listen to session events (orderUpdate, tradeUpdate, balanceUpdate, balanceSnapshot)
|
* [bbgo userdatastream](bbgo_userdatastream.md) - Listen to session events (orderUpdate, tradeUpdate, balanceUpdate, balanceSnapshot)
|
||||||
* [bbgo version](bbgo_version.md) - show version name
|
* [bbgo version](bbgo_version.md) - show version name
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -41,4 +41,4 @@ bbgo account [--session=[exchange_name]] [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -48,4 +48,4 @@ bbgo backtest [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Show user account balances
|
Show user account balances
|
||||||
|
|
||||||
```
|
```
|
||||||
bbgo balances [flags]
|
bbgo balances --session SESSION [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
@ -40,4 +40,4 @@ bbgo balances [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -39,4 +39,4 @@ bbgo build [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -49,4 +49,4 @@ bbgo cancel-order [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -41,4 +41,4 @@ bbgo deposits [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
execute buy/sell on the balance/position you have on specific symbol
|
execute buy/sell on the balance/position you have on specific symbol
|
||||||
|
|
||||||
```
|
```
|
||||||
bbgo execute-order [flags]
|
bbgo execute-order --session SESSION --symbol SYMBOL --side SIDE --target-quantity TOTAL_QUANTITY --slice-quantity SLICE_QUANTITY [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
@ -48,4 +48,4 @@ bbgo execute-order [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
45
doc/commands/bbgo_get-order.md
Normal file
45
doc/commands/bbgo_get-order.md
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
## bbgo get-order
|
||||||
|
|
||||||
|
Get order status
|
||||||
|
|
||||||
|
```
|
||||||
|
bbgo get-order --session SESSION --order-id ORDER_ID [flags]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Options
|
||||||
|
|
||||||
|
```
|
||||||
|
-h, --help help for get-order
|
||||||
|
--order-id string order id
|
||||||
|
--session string the exchange session name for sync
|
||||||
|
--symbol string the trading pair, like btcusdt
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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")
|
||||||
|
--debug debug mode
|
||||||
|
--dotenv string the dotenv file you want to load (default ".env.local")
|
||||||
|
--ftx-api-key string ftx api key
|
||||||
|
--ftx-api-secret string ftx api secret
|
||||||
|
--ftx-subaccount string subaccount name. Specify it if the credential is for subaccount.
|
||||||
|
--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
|
||||||
|
--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
|
||||||
|
|
||||||
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
|
@ -42,4 +42,4 @@ bbgo kline [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
list user's open orders in exchange of a specific trading pair
|
list user's open orders in exchange of a specific trading pair
|
||||||
|
|
||||||
```
|
```
|
||||||
bbgo list-orders [status] [flags]
|
bbgo list-orders open|closed --session SESSION --symbol SYMBOL [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
@ -41,4 +41,4 @@ bbgo list-orders [status] [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -40,4 +40,4 @@ bbgo market [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -42,4 +42,4 @@ bbgo orderbook --session=[exchange_name] --symbol=[pair_name] [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -40,4 +40,4 @@ bbgo orderupdate [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -43,4 +43,4 @@ bbgo pnl [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -49,4 +49,4 @@ bbgo run [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## bbgo submit-order
|
## bbgo submit-order
|
||||||
|
|
||||||
submit limit order to the exchange
|
place limit order to the exchange
|
||||||
|
|
||||||
```
|
```
|
||||||
bbgo submit-order --session SESSION --symbol SYMBOL --side SIDE --quantity QUANTITY [--price PRICE] [flags]
|
bbgo submit-order --session SESSION --symbol SYMBOL --side SIDE --quantity QUANTITY [--price PRICE] [flags]
|
||||||
|
@ -44,4 +44,4 @@ bbgo submit-order --session SESSION --symbol SYMBOL --side SIDE --quantity QUANT
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -42,4 +42,4 @@ bbgo sync --session=[exchange_name] --symbol=[pair_name] [--since=yyyy/mm/dd] [f
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -42,4 +42,4 @@ bbgo trades --session=[exchange_name] --symbol=[pair_name] [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -40,4 +40,4 @@ bbgo tradeupdate --session=[exchange_name] [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -42,4 +42,4 @@ bbgo transfer-history [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -40,4 +40,4 @@ bbgo userdatastream [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
|
@ -39,4 +39,4 @@ bbgo version [flags]
|
||||||
|
|
||||||
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
* [bbgo](bbgo.md) - bbgo is a crypto trading bot
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 22-Feb-2022
|
###### Auto generated by spf13/cobra on 3-Mar-2022
|
||||||
|
|
Loading…
Reference in New Issue
Block a user