Skip to content

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.

GET /order-scoring

Base URL: https://api.openfish.fun

L2 authentication required. All five OPENFISH_* headers must be present.

ParameterTypeRequiredDescription
order_idstringYesUUID of the order to check
{
"scoring": true
}
FieldTypeDescription
scoringbooleanWhether the order is actively scoring

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.

Terminal window
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: ..."