HomeDocumentationAPI Reference
Log In
API Reference

Set Feed Data

Method Name

public/set_feed_data

TODO description

Parameters

forwardarray of objectsrequired
forward[].confidencestringrequired
The confidence score of the price
forward[].currencystringrequired
The currency for which the spot feed represents
forward[].deadlineintegerrequired
The latest time the data can be submitted on chain
forward[].expiryintegerrequired
The expiry for the forward feed
forward[].fwd_diffstringrequired
difference of forward price from current spot price
forward[].spot_aggregate_lateststringrequired
expiry -> spot * time value at the latest timestamp
forward[].spot_aggregate_startstringrequired
spot * time value at the start of the settlement period
forward[].timestampintegerrequired
The timestamp for which the data was created
forward[].signaturesobjectrequired
Signatures
forward[].signatures.signaturesarray of strings
The signatures of the given signers
forward[].signatures.signersarray of strings
The signers who verify the data integrity
perparray of objectsrequired
perp[].confidencestringrequired
The confidence score of the price
perp[].currencystringrequired
The currency for which the spot feed represents
perp[].deadlineintegerrequired
The latest time the data can be submitted on chain
perp[].spot_diff_valuestringrequired
The difference between the spot price and the perp price
perp[].timestampintegerrequired
The timestamp for which the data was created
perp[].typestringrequired
The type of perp feed; mid price, ask impact or bid impact
enum PAB
perp[].signaturesobjectrequired
Signatures
perp[].signatures.signaturesarray of strings
The signatures of the given signers
perp[].signatures.signersarray of strings
The signers who verify the data integrity
ratearray of objectsrequired
rate[].confidencestringrequired
The confidence score of the rate
rate[].currencystringrequired
The currency for which the spot feed represents
rate[].deadlineintegerrequired
The latest time the data can be submitted on chain
rate[].expiryintegerrequired
The expiry for the rate feed
rate[].ratestringrequired
The implied rate for the currency/expiry
rate[].timestampintegerrequired
The timestamp for which the data was created
rate[].signaturesobjectrequired
Signatures
rate[].signatures.signaturesarray of strings
The signatures of the given signers
rate[].signatures.signersarray of strings
The signers who verify the data integrity
spotarray of objectsrequired
spot[].confidencestringrequired
The confidence score of the price
spot[].currencystringrequired
The currency for which the spot feed represents
spot[].deadlineintegerrequired
The latest time the data can be submitted on chain
spot[].pricestringrequired
The price of the currency in USD
spot[].timestampintegerrequired
The timestamp for which the data was created
spot[].signaturesobjectrequired
Signatures
spot[].signatures.signaturesarray of strings
The signatures of the given signers
spot[].signatures.signersarray of strings
The signers who verify the data integrity
spot[].feed_source_typestring
The source of the feed
enum SO
volarray of objectsrequired
vol[].confidencestringrequired
The confidence score of the price
vol[].currencystringrequired
The currency for which the spot feed represents
vol[].deadlineintegerrequired
The latest time the data can be submitted on chain
vol[].expiryintegerrequired
The expiry for the options for the vol feed
vol[].timestampintegerrequired
The timestamp for which the data was created
vol[].signaturesobjectrequired
Signatures
vol[].signatures.signaturesarray of strings
The signatures of the given signers
vol[].signatures.signersarray of strings
The signers who verify the data integrity
vol[].vol_dataobjectrequired
The SVI parameters for the vol curve
vol[].vol_data.SVI_astringrequired
vol[].vol_data.SVI_bstringrequired
vol[].vol_data.SVI_fwdstringrequired
vol[].vol_data.SVI_mstringrequired
vol[].vol_data.SVI_refTaustringrequired
vol[].vol_data.SVI_rhostringrequired
vol[].vol_data.SVI_sigmastringrequired

Response

idstring or integerrequired
resultobjectrequired

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}