This strategy will rebalance your portfolio according to the market capitalization from coinmarketcap.
Setup your COINMARKETCAP_API_KEY
in your environment variables.
interval
- The interval to rebalance your portfolio, e.g.,
5m
,1h
- The interval to rebalance your portfolio, e.g.,
baseCurrency
- The base currency of your portfolio, e.g.,
USDT
,TWD
.
- The base currency of your portfolio, e.g.,
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 ofBTC
is52%
and the target weight is50%
then the strategy will sellBTC
until it reaches50%
.
- The threshold of the difference between the current weight and the target weight to trigger rebalancing. For example, if the threshold is
dryRun
- If
true
, then the strategy will not place orders.
- If
maxAmount
- The maximum amount of each order in base currency.
See marketcap.yaml