Get Order Scoring Status
Determines whether a specific order is currently earning rewards. An order qualifies for scoring when it is LIVE and its price sits within 200 basis points (2%) of the midpoint.
Endpoint
Section titled “Endpoint”GET /order-scoring
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”L2 authentication required. All five OPENFISH_* headers must be present.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | UUID of the order to check |
Response
Section titled “Response”{ "scoring": true}| Field | Type | Description |
|---|---|---|
scoring | boolean | Whether the order is actively scoring |
Scoring Criteria
Section titled “Scoring Criteria”An order earns rewards when all of the following hold:
- Its status is
LIVE - It still has unfilled size remaining
- Its price falls within 200 bps of the current midpoint
When the order book is empty and no midpoint can be computed, every LIVE order is treated as scoring.
Example
Section titled “Example”curl "https://api.openfish.fun/order-scoring?order_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \ -H "OPENFISH_ADDRESS: 0x..." \ -H "OPENFISH_SIGNATURE: ..." \ -H "OPENFISH_TIMESTAMP: 1700000000" \ -H "OPENFISH_API_KEY: ..." \ -H "OPENFISH_PASSPHRASE: ..."