Trade on the market
Swap any token for any other on Dznye Chain: take all or part of an offer, set an end time, and see prices that come only from real trades.
The market lets you swap one thing for another with a stranger, safely. There is no company in the middle holding anything. The chain itself makes sure each swap happens completely or not at all. You trade in your wallet at wallet.dznye.com/market, and anyone can watch prices, charts and every trade at market.dznye.com.
How a trade works
- Someone posts an offer. "I give 100 GOLD, I want 20 DZY." What they give is held by the chain until the offer is taken, cancelled or ends, so the offer is real.
- Someone takes it, all of it or part. Taking 30 GOLD of that offer costs 6 DZY: the same price. Both sides move at the same moment. The rest of the offer stays open for others.
- Or it is cancelled, or it ends. The person who posted it can cancel at any time. An offer can also have an end time; after it nobody can take it, and what is left goes back to its owner.
Neither person can run off with the other's things, because nothing leaves either account until both parts of the swap happen in one step. If it cannot complete, nothing moves.
Take an offer
- Open Trade in your wallet, and pick a market (for example GOLD/DZY).
- Read the order book: what each offer gives, what it wants, and the price.
- Type how much you want to take, or leave it empty to take all of it, and press Take.
When you take part of an offer, the price is the offer's own. Amounts are whole numbers of the smallest unit, so a part is rounded up by at most that one unit, in the favour of the person who posted the offer. In total they always receive exactly what they asked for.
Post an offer
- Under Post an offer, choose what you give and how much, then what you want and how much. The page shows the price both ways as you type.
- Choose when it ends: never (until you cancel), or in an hour, a day, a week or 30 days.
- Press Post the offer. You will see it under Your open offers, where you can cancel it.
Prices come from trades, not offers
An offer is only a wish. A price is what someone actually paid. So the price of a market on Dznye is always its last completed trade, never an offer nobody took. Every trade is recorded by the chain itself: the block, the time, both amounts, who sold and who bought.
- The pair. When DZY is one side, prices are in DZY (GOLD/DZY: how much DZY one GOLD cost). Otherwise the two tokens in alphabetical order.
- 24-hour change and volume come only from trades in the last 24 hours.
- The chart is one point per trade. Download the trades as CSV on market.dznye.com and you can draw the same chart yourself.
- The best bid and ask come from open offers: the most anyone will pay, and the least anyone will sell for.
Dznye does not trade against its own users to make a market look busy, and does not pay for volume. If an account run by Dznye ever places offers, it is named in public. A thin market is shown as thin.
Trading with other chains
To swap DZY for SOL, BTC, ETH or USDC on their own chains, use a hash lock: swap with other chains. No bridge, and nobody holds the coins in between.
Costs
Posting, taking and cancelling each cost the small fee of 0.001 DZY. The welcome fund pays it for new accounts. There is no market fee on top.
For builders
From code: await dz.trade(me, { give: [gold, '10'], want: ['DZY', '2'] }), await dz.take(me, offerId) or await dz.take(me, offerId, '3') for part of it, and await dz.trades(gold, 'DZY') for the trades. Raw data: GET /offers, GET /trades and GET /trades?a=<id>&b=<id>. The chain keeps its newest 500 trades in its state; older ones are in the blocks. See the developer kit.