{"slug":"saylorinnovations-com-api-crypto-rebalance-918edc","title":"Buy and sell amounts that bring a crypto portfolio to target weights, with optio","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/crypto/rebalance","category":"market","description":"Buy and sell amounts that bring a crypto portfolio to target weights, with optional new cash, drift band and fees, plus turnover and the biggest drift.","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"holdings":"BTC:6000,ETH:3000,SOL:1000","new_cash_usd":"500","target_weights":"BTC:50,ETH:30,SOL:20"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"holdings":{"description":"current values as SYMBOL:usd pairs, e.g. BTC:6000,ETH:3000","type":"string"},"new_cash_usd":{"description":"optional cash to add (negative to withdraw)","type":"string"},"target_weights":{"description":"target percentages that add up to 100, e.g. BTC:50,ETH:30,SOL:20","type":"string"}},"required":["holdings","target_weights"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"assets":{"description":"Per-asset current state and trade","items":{"properties":{"action":{"description":"buy, sell or hold","type":["string","null"]},"current_usd":{"description":"Current value","type":["number","null"]},"current_weight_percent":{"description":"Current share of the portfolio","type":["number","null"]},"drift_percent_points":{"description":"Target weight minus current weight","type":["number","null"]},"symbol":{"description":"Asset symbol","type":["string","null"]},"target_usd":{"description":"Target value","type":["number","null"]},"target_weight_percent":{"description":"Target share","type":["number","null"]},"trade_usd":{"description":"Amount to trade (negative means sell)","type":["number","null"]}},"type":"object"},"type":"array"},"drift_band_percent":{"description":"Drift tolerance used","type":"number"},"estimated_fees_usd":{"description":"Fees on all trades at the given rate","type":"number"},"largest_drift_asset":{"description":"Symbol furthest from its target","type":"string"},"new_cash_usd":{"description":"Cash added or withdrawn","type":"number"},"note":{"description":"Plain-language caveat about how to read and use the result","type":"string"},"source":{"description":"Where the data or formula comes from","type":"string"},"total_to_buy_usd":{"description":"Sum of buys","type":"number"},"total_to_sell_usd":{"description":"Sum of sells","type":"number"},"total_value_usd":{"description":"Portfolio value including new cash","type":"number"},"turnover_percent":{"description":"Share of the portfolio traded","type":"number"}},"required":["assets","total_to_buy_usd"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Buy and sell amounts that bring a crypto portfolio to target weights, with optional new cash, drift band and fees, plus turnover and the biggest drift.","last_updated":"2026-10-20T14:45:24.224Z","schemes":["exact"]}