Developers
Submarine's market data and ready-to-sign trades for your app, bot or agent. Free to use. Pass your builder code on a quote and you earn 30% of the terminal's cut of every trade it brings, paid in ZRO by the router in the same transaction. The trader pays the same as anywhere else on Submarine.
30%
of the terminal's cut
On every buy and sale built with your code, paid on chain as it happens.
300
requests a minute per key
30 a minute per IP without one, on quotes. Up to 5 keys a wallet.
1 request
from quote to signed trade
The best venue, the minimum out and the transaction, checked against the chain.
Quick start
A price for 25 ZRO of a token, with no key and no wallet:
curl "https://app.submarine.live/api/v1/quote?token=0xTOKEN&side=buy&amount=25"
Add the trader and your code, and the answer carries the transaction too:
curl "https://app.submarine.live/api/v1/quote?token=0xTOKEN&side=buy&amount=25&trader=0xTRADER&builder=your-code" -H "x-api-key: YOUR_KEY"
transactionhasto,data,valueandgas. Sign it with the trader's wallet and send it to Zero beforedeadline.builder.appliedsays whether your share is in it. A builder isn't paid for its own trades.- A sale may come with
approvals: send those first, then the sale.
Base URL https://app.submarine.live/api/v1