-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72f18c1
commit d236cde
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
### Marketcap Strategy | ||
|
||
This strategy will rebalance your portfolio according to the market capitalization from coinmarketcap. | ||
|
||
### Prerequisite | ||
|
||
Setup your `COINMARKETCAP_API_KEY` in your environment variables. | ||
|
||
#### Parameters | ||
|
||
- `interval` | ||
- The interval to rebalance your portfolio, e.g., `5m`, `1h` | ||
- `baseCurrency` | ||
- The base currency of your portfolio, e.g., `USDT`, `TWD`. | ||
- `baseWeight` | ||
- The weight of the base currency in your portfolio. The rest of the weight will be distributed to other currencies by market capitalization. | ||
- `targetCurrencies` | ||
- A list of currencies you want to hold in your portfolio. | ||
- `threshold` | ||
- The threshold of the difference between the current weight and the target weight to trigger rebalancing. For example, if the threshold is `1%` and the current weight of `BTC` is `52%` and the target weight is `50%` then the strategy will sell `BTC` until it reaches `50%`. | ||
- `dryRun` | ||
- If `true`, then the strategy will not place orders. | ||
- `maxAmount` | ||
- The maximum amount of each order in base currency. | ||
|
||
#### Examples | ||
|
||
See [marketcap.yaml](../../config/marketcap.yaml) |