Parameters
What the creator sets
| Parameter | When | Notes |
|---|
| Name | At creation, for good | dex:TICKER, written into the price feed's id on chain. |
| Price step | At creation, for good | Picked from the starting price; ten times finer or coarser on request. |
| How long a price is good | At creation | 1 minute, 10 minutes or 1 hour. |
| Open-interest cap | Any time, at once | In lots. Its dollar value moves with the price. |
| Position cap per account | Any time, at once | |
| Deposit cap | Any time, at once | The bond is not counted against it. |
| Pause | Any time, at once | |
| Margin | After a day's public notice | Never below 10% initial and 5% maintenance. |
| Price feed, owner | After a day's public notice | |
A change that waits is written into the market's account when it is proposed, with the slot it can take effect at. Anyone can read it there, and anyone can carry it out once the wait is over.
What is the same for every market
| |
|---|
| Leverage | 10x at most |
| Taker fee | 0.05% |
| Mark price | Within 5% of the price feed |
| Single-post move | More than 5% is held until confirmed |
| Notice for margin, feed and owner changes | 216,000 slots, about a day |
| Rent | Eight accounts, about 0.129 SOL |
What the creator cannot do
- Withdraw from the vault. No instruction pays out of it but a user's own withdrawal, and a creator's claim of the fees.
- Take the bond back.
- Lower margin below the floor.
- Change anything in another market.