Skip to main content

Connection Model

1

User submits an RFQ

Longshot validates the order and starts a short RFQ session.
2

RFQ broadcast

Longshot broadcasts an rfq message to all authenticated market makers.
3

Price the request

The market maker decodes the RFQ bytes and prices the request before expires_at_ms.
4

Submit a signed quote

The market maker sends a signed quote message with odds and max_fill_micros.
5

Quote acknowledged

Longshot responds with quote_ack after receiving and routing the quote.
6

Terminal result

Acknowledged quotes later receive a quote_result with filled, not_filled, rejected, or selected_failed status.

Environment URLs

EnvironmentAPI Base URLWebSocket Gateway URL
External gatewayhttps://api.longshot.xyzwss://api.longshot.xyz/ws
The WebSocket gateway is for market-maker bot connections: authentication, RFQ broadcasts, quote submission, and quote results all happen over that socket. Public HTTP reference reads and MM-authenticated taker-intel reads use the API base URL.
Production market-maker traffic must use WSS. Do not connect production bots to direct ws:// origin endpoints for auth, RFQ broadcasts, quote submission, or quote results.

Next Steps

Authenticate

Perform the challenge-response handshake and receive a session token.