Buy a basket of tokenized stocks

One payment splits into a weighted basket of stock tokens. Sell it back the same way.

Live. Runs on Composer today
In your app
Sample data

What runs, in order

  1. 1
    User paysUSDC
    Ethereum
  2. 2
    Split by weightUp to 13 legscore.partition
    Ethereum
  3. 3
    Buy each stock tokenMSTRx, CRCLonlifi.swap ×n
    Ethereum
Build this

Get an API key and the code for this exact flow.

Who it's for

Wallets and neobanks with a stocks tab

What you get

  • A whole theme in one transaction instead of one trade per stock
  • Weights are fixed by you or picked by the user
  • A stock that cannot be bought right now is named before signing
Real transactions

Run it live

The flow from the demo, compiled with your key and signed by your wallet. Get the code

Paste your LI.FI API key

The flow runs on Composer with your key. It stays in this browser and goes only to https://composer.li.quest. No key yet? Get one ↗