Prices

GetPrice

Returns the current oracle price for one market, along with a signed price payload suitable for on-chain submission.

post/price_service.v1.PriceService/GetPrice

Headers

Connect-Protocol-Version1 required

Define the version of the Connect protocol. If omitted, use 1.

Connect-Timeout-Msnumber

Define the timeout, in ms

Request body

Response

Success

signedPricePayloadstring nullable

Signed price attestation from the upstream pricing oracle, suitable for on-chain submission (e.g. to settle trades or trigger liquidations). Opaque/encoded; format is defined by the pricing oracle, not by this API.

Example response

{
  "price": {
    "timestamp": "2023-01-15T01:30:15.01Z"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.