HomeDocumentationAPI Reference
Log In
API Reference

Set Feed Data

Method Name

public/set_feed_data

TODO description

Parameters

forward  array of objects required

forward[]. confidence  string required
The confidence score of the price

forward[]. currency  string required
The currency for which the spot feed represents

forward[]. deadline  integer required
The latest time the data can be submitted on chain

forward[]. expiry  integer required
The expiry for the forward feed

forward[]. fwd_diff  string required
difference of forward price from current spot price

forward[]. spot_aggregate_latest  string required
expiry -> spot * time value at the latest timestamp

forward[]. spot_aggregate_start  string required
spot * time value at the start of the settlement period

forward[]. timestamp  integer required
The timestamp for which the data was created

forward[]. signatures  object required
Signatures

forward[].signatures. signatures  array of strings
The signatures of the given signers

forward[].signatures. signers  array of strings
The signers who verify the data integrity

perp  array of objects required

perp[]. confidence  string required
The confidence score of the price

perp[]. currency  string required
The currency for which the spot feed represents

perp[]. deadline  integer required
The latest time the data can be submitted on chain

perp[]. spot_diff_value  string required
The difference between the spot price and the perp price

perp[]. timestamp  integer required
The timestamp for which the data was created

perp[]. type  string required
The type of perp feed; mid price, ask impact or bid impact
enum P A B

perp[]. signatures  object required
Signatures

perp[].signatures. signatures  array of strings
The signatures of the given signers

perp[].signatures. signers  array of strings
The signers who verify the data integrity

rate  array of objects required

rate[]. confidence  string required
The confidence score of the rate

rate[]. currency  string required
The currency for which the spot feed represents

rate[]. deadline  integer required
The latest time the data can be submitted on chain

rate[]. expiry  integer required
The expiry for the rate feed

rate[]. rate  string required
The implied rate for the currency/expiry

rate[]. timestamp  integer required
The timestamp for which the data was created

rate[]. signatures  object required
Signatures

rate[].signatures. signatures  array of strings
The signatures of the given signers

rate[].signatures. signers  array of strings
The signers who verify the data integrity

spot  array of objects required

spot[]. confidence  string required
The confidence score of the price

spot[]. currency  string required
The currency for which the spot feed represents

spot[]. deadline  integer required
The latest time the data can be submitted on chain

spot[]. price  string required
The price of the currency in USD

spot[]. timestamp  integer required
The timestamp for which the data was created

spot[]. signatures  object required
Signatures

spot[].signatures. signatures  array of strings
The signatures of the given signers

spot[].signatures. signers  array of strings
The signers who verify the data integrity

spot[]. feed_source_type  string
The source of the feed
enum S O

vol  array of objects required

vol[]. confidence  string required
The confidence score of the price

vol[]. currency  string required
The currency for which the spot feed represents

vol[]. deadline  integer required
The latest time the data can be submitted on chain

vol[]. expiry  integer required
The expiry for the options for the vol feed

vol[]. timestamp  integer required
The timestamp for which the data was created

vol[]. signatures  object required
Signatures

vol[].signatures. signatures  array of strings
The signatures of the given signers

vol[].signatures. signers  array of strings
The signers who verify the data integrity

vol[]. vol_data  object required
The SVI parameters for the vol curve

vol[].vol_data. SVI_a  string required

vol[].vol_data. SVI_b  string required

vol[].vol_data. SVI_fwd  string required

vol[].vol_data. SVI_m  string required

vol[].vol_data. SVI_refTau  string required

vol[].vol_data. SVI_rho  string required

vol[].vol_data. SVI_sigma  string required

Response

id  string or integer required

result  object required

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}