Solidity Interface Reference

ConstantsBS

FEED_ID_FUTURE

uint32 FEED_ID_FUTURE

FEED_ID_MODEL_PARAMS

uint32 FEED_ID_MODEL_PARAMS

FEED_ID_SPOT

uint32 FEED_ID_SPOT

FEED_ID_INTEREST_RATE

uint32 FEED_ID_INTEREST_RATE

FEED_ID_SETTLEMENT_PRICE

uint32 FEED_ID_SETTLEMENT_PRICE

FEED_ID_IMPLIED_VOLATILITY

uint32 FEED_ID_IMPLIED_VOLATILITY

FEED_ID_OPTION_MARK_PRICE

FEED_ID_SPOT_EQUITY

EXPIRY_TYPE_TIMESTAMP

EXPIRY_TYPE_TENOR

EXCHANGE_BLOCKSCHOLES

EXCHANGE_DERIBIT

EXCHANGE_BYBIT

EXCHANGE_OKX

BASE_ASSET_BTC

BASE_ASSET_ETH

BASE_ASSET_SPY

BASE_ASSET_IBIT

OPTION_TYPE_CALL

OPTION_TYPE_PUT

IV_LEVEL_TYPE_STRIKE

IV_LEVEL_TYPE_MONEYNESS

SVI_PARAM_A

SVI_PARAM_B

SVI_PARAM_RHO

SVI_PARAM_M

SVI_PARAM_SIGMA

IFeedProviderBS

common interface for feed providers to implement

Feed

identifier for a single feed

FeedParameters

parameters for a feed

FeedData

output data for a feed

getLatestFeedData

get the latest feed data

Parameters

Name
Type
Description

feed

struct IFeedProviderBS.Feed

the feed to get data for

Return Values

Name
Type
Description

[0]

struct IFeedProviderBS.FeedData

the latest feed data

IOracleBS

the public interface for the Oracle as a whole

OptionParameters

The feed parameters for the option price and SVI feeds - these should be abi encoded and passed in as the "other" feed parameters.

RouteDoesNotExist

error emitted when a route does not exist for the specified feed ID

FeedProviderDoesNotExist

error emitted when a feed provider cannot be found for the specified feed ID

this indicates a configuration error with how the route was set up

PermissionDenied

error emitted when a client does not have permission to access the specified feed.

permissions are based on the feed ID and enumerable feed parameters

Last updated

Was this helpful?