Financial Information eXchange (FIX) is the de‑facto protocol used by institutions for electronic trading. Coinbase Prime offers a FIX 4.2 gateway for order entry, status, and cancellations, so you can plug existing trading infrastructure straight into the crypto market.
Why choose FIX? Deterministic message sequencing, millisecond round‑trips, mature open‑source engines, and easy colocation with traditional‑finance systems. Why stick with REST? More intuitive initial implementation if unfamiliar with FIX Protocol.
Layer | What it does | Typical use |
---|---|---|
FIX | Order entry, cancel, drop‑copy | Systematic trading, HFT, post‑trade reconciliation |
Websocket (l2_data , orders ) | Streaming order book + order updates | UI embed, order oversight |
REST | Trading, transfers, reporting | Wallet creation, reconciliation, trading, withdrawals |
Most automated desks run two FIX sessions:
9406=N
).9406=Y
).H
or the REST Get Order by ID endpoint to retrieve specific order info.H
or RESTUse the Buying Power
and other Portfolio Margin APIs to determine trading availability.
Use the REST balances endpoint with:
Use any or all of the following for fill + order state monitoring:
To scope FIX messages:
DropCopyFlag=9406=N
→ Only orders created via current FIX sessionDropCopyFlag=9406=Y
→ All orders and fills across the portfolioMultiple connections are suggested for redundancy. Your code should gracefully handle disconnects and reconnects.
To test FIX with a Prime API key, clone the Prime FIX Go sample app. For full setup details, review the README.
The Go client exposes one REPL command per flow (new
, status
, cancel
). Execution Reports are flushed to orders.json
for later reference.