{"openapi":"3.1.0","info":{"title":"Netquote Suite API","version":"0.1.0","description":"Read-only DEX market data across Netquote, Bridgewatch, Depthmapper, Fillcheck and Pegboard. One key for all five. Data only: never custodies funds, never asks for wallet keys or signatures.","contact":{"name":"Netquote Technologies Inc."}},"servers":[{"url":"https://api.netquote.io"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key, nq_live_…"}},"schemas":{"Error":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"},"upgrade_url":{"type":"string"},"billing_url":{"type":"string"},"retry_after_s":{"type":"integer"}}}}},"paths":{"/v1/quote":{"get":{"operationId":"getNetQuote","summary":"Net price at size after gas, fees and bridge (Netquote)","parameters":[{"name":"sell","in":"query","required":false,"description":"Token to sell, e.g. ETH","schema":{"type":"string","default":"ETH"}},{"name":"buy","in":"query","required":false,"description":"Token to buy, e.g. USDC","schema":{"type":"string","default":"USDC"}},{"name":"size","in":"query","required":false,"description":"Amount of the sell token","schema":{"type":"number","default":1}},{"name":"from","in":"query","required":false,"description":"Chain you hold on","schema":{"type":"string","enum":["ethereum","base","arbitrum","optimism"]}},{"name":"to","in":"query","required":false,"description":"Chain to receive on (defaults to from)","schema":{"type":"string","enum":["ethereum","base","arbitrum","optimism"]}},{"name":"realtime","in":"query","required":false,"description":"Require real-time data (paid plans)","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ranked routes with net price and cost in bps","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time"},"freshness_ms":{"type":"integer"},"delayed":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pegs":{"get":{"operationId":"getPegs","summary":"Staked-ETH market vs fair value at size, plus the Lido exit queue (Pegboard)","parameters":[{"name":"size","in":"query","required":false,"description":"Size in tokens","schema":{"type":"number","default":10}}],"responses":{"200":{"description":"Pegs sorted by discount","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time"},"freshness_ms":{"type":"integer"},"delayed":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bridges":{"get":{"operationId":"getBridgeRoutes","summary":"Bridge fee and fill time per route (Bridgewatch)","parameters":[{"name":"asset","in":"query","required":false,"description":"ETH or USDC","schema":{"type":"string","enum":["ETH","USDC"]}},{"name":"amount","in":"query","required":false,"description":"Amount","schema":{"type":"number","default":1}},{"name":"from","in":"query","required":false,"description":"Origin chain","schema":{"type":"string","enum":["ethereum","base","arbitrum","optimism"]}},{"name":"to","in":"query","required":false,"description":"Destination chain","schema":{"type":"string","enum":["ethereum","base","arbitrum","optimism"]}}],"responses":{"200":{"description":"Routes sorted by fee","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time"},"freshness_ms":{"type":"integer"},"delayed":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/depth":{"get":{"operationId":"getDepth","summary":"Price impact by trade size and depth within 1% (Depthmapper)","parameters":[{"name":"chain","in":"query","required":false,"description":"Chain","schema":{"type":"string","enum":["ethereum","base","arbitrum","optimism"]}},{"name":"sell","in":"query","required":false,"description":"Sell token","schema":{"type":"string","default":"ETH"}},{"name":"buy","in":"query","required":false,"description":"Buy token","schema":{"type":"string","default":"USDC"}}],"responses":{"200":{"description":"Impact curve","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time"},"freshness_ms":{"type":"integer"},"delayed":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/fill":{"get":{"operationId":"checkFill","summary":"Fill quality of a swap transaction (Fillcheck)","parameters":[{"name":"chain","in":"query","required":false,"description":"Chain","schema":{"type":"string","enum":["ethereum","base","arbitrum","optimism"]}},{"name":"tx","in":"query","required":true,"description":"Transaction hash","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Sold, bought, gas and shortfall in bps. A token with no public price keeps its amount, usd is null.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time"},"freshness_ms":{"type":"integer"},"delayed":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/gas":{"get":{"operationId":"getGas","summary":"Gas price per chain","responses":{"200":{"description":"Gas in gwei","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time"},"freshness_ms":{"type":"integer"},"delayed":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/me":{"get":{"operationId":"getMe","summary":"Your plan, key scopes and limits","parameters":[{"name":"site","in":"query","required":false,"description":"Site to check access for","schema":{"type":"string"}}],"responses":{"200":{"description":"Plan and limits","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_key, invalid_key or key_revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"plan_required, scope_denied or payment_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limit or quota_exceeded. Includes Retry-After and upgrade_url.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A public upstream source did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/stream":{"get":{"operationId":"stream","summary":"WebSocket stream of live updates per site. Paid plans. Pass ?site= and ?key= (browsers) or Authorization.","parameters":[{"name":"site","in":"query","required":false,"description":"Site","schema":{"type":"string","enum":["netquote","bridgewatch","depthmapper","fillcheck","pegboard"]}}],"responses":{"101":{"description":"Switching protocols"},"403":{"description":"plan_required"}}}}}}