Skip to main content
curl --request POST \
  --url https://api.longshot.xyz/v1/rfq/unsigned \
  --header 'Authorization: Bearer <session_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "wager_micros": 1000000,
    "min_odds": 1.01,
    "legs": [{ "market_id": 61619, "direction": "up" }],
    "order_type": 2,
    "shield_on": false,
    "idempotency_key": "550e8400-e29b-41d4-a716-446655440000"
  }'
{
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "odds": 1.8519,
  "payout_micros": "1851900",
  "quotes_received": 1
}
curl --request POST \
  --url https://api.longshot.xyz/v1/rfq/unsigned \
  --header 'Authorization: Bearer <session_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "wager_micros": 1000000,
    "min_odds": 1.01,
    "legs": [{ "market_id": 61619, "direction": "up" }],
    "order_type": 2,
    "shield_on": false,
    "idempotency_key": "550e8400-e29b-41d4-a716-446655440000"
  }'
{
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "odds": 1.8519,
  "payout_micros": "1851900",
  "quotes_received": 1
}

Endpoint

POST https://api.longshot.xyz/v1/rfq/unsigned
Authorization: Bearer <session_token>
Content-Type: application/json
Creates an RFQ bound to the authenticated Longshot session. No EVM signature is required; the API derives the taker user and wallet address from the session and uses the supplied idempotency key for replay protection.

Body Parameters

wager_micros
int64
required
Wager size in USDC micros. 1000000 is 1 USDC.
min_odds
number
required
Minimum acceptable payout multiplier, for example 1.01.
legs
array
required
One to eight legs. Each leg contains market_id and direction.
order_type
int32
1 for IOC or 2 for FOK. Defaults to FOK when omitted.
shield_on
boolean
required
If true, suppresses user tier and EVM address in market-maker-facing RFQs.
idempotency_key
uuid
required
Client-supplied idempotency key for replay-safe submission.