Trading API
Trade on Vintradex programmatically: access, keys, limits, fees, signing offers.
Access
The API is open by invitation, to companies that keep buy and sell offers open continuously: write to us via “Write to us”. The team invites you; the “API” page of your account then asks for your company’s details (its name, registration number, registered office, legal representative, a technical contact, what you will use the API for); the team reviews them and replies. Once access is granted, you create up to 3 keys: “Read” or “Read and trade”, each optionally limited to a few IP addresses.
Authentication
Every request carries the header “Authorization: Bearer vtx_…”, over HTTPS only. No cookies. A revoked key, or withdrawn access, stops working at once.
Limits
Per key and per minute: 600 reads and 300 actions (placing, changing or removing an offer). Beyond that, the 429 response says how many seconds to wait.
Fees
The same as on the site: 3% for whoever takes an offer already listed, 1% for whoever’s offer was waiting. When buying, on top of the price; when selling, taken from what you receive.
Placing an offer
1. Prepare it: the API returns the complete EIP-712 order. 2. Sign it with your account’s wallet (eth_signTypedData_v4). 3. Place the offer with its signature and a unique idempotency key: sending the same key again never places two offers. Without your wallet’s signature, no offer is placed.
Your trades live
Open GET /v1/api/flux with your key (Server-Sent Events): each trade of your offers arrives at once, as the “echange” event, its identifier in “id”. If cut off, reconnect with the Last-Event-ID header: the missed trades arrive, with no duplicate. Two connections at most per key; a heartbeat every 15 seconds keeps the connection open.
Errors
A refusal is returned as application/problem+json (RFC 9457), with a stable “code” and a message in your account’s language.
Routes
| Method | Path | Purpose |
|---|---|---|
GET | /v1/api/moi | The calling key: its prefix, name and rights. |
GET | /v1/api/reserve | Your cards in the reserve, your money, your open offers. |
GET | /v1/api/offres | Your buy and sell offers, open and past. |
GET | /v1/api/echanges | Your trades, most recent first, page by page: price, units, your fees, your role (taker or maker). |
GET | /v1/api/flux | Your trades live (Server-Sent Events), each one at once; on reconnecting, Last-Event-ID resumes with no gap. Two connections at most per key. |
POST | /v1/api/ordres/preparation | Prepare offers to sign: the EIP-712 order for each. |
POST | /v1/api/offres | Place a signed offer; carried out at once if it matches one on the other side. |
POST | /v1/api/offres/:id/modification | Change the price or units of an offer (signed again). |
POST | /v1/api/offres/:id/annulation | Cancel an offer: what it set aside comes back. |
Live prices and offers
Public, no key needed: the list of lines and their prices (GET /v1/trading/lignes), one line with its offers and latest trades (GET /v1/trading/lignes/:code), and a line’s live feed (GET /v1/flux/lignes/:code, Server-Sent Events).