Solidity Interface Reference
ConstantsBS
FEED_ID_FUTURE
uint32 FEED_ID_FUTUREFEED_ID_MODEL_PARAMS
uint32 FEED_ID_MODEL_PARAMSFEED_ID_SPOT
uint32 FEED_ID_SPOTFEED_ID_INTEREST_RATE
uint32 FEED_ID_INTEREST_RATEFEED_ID_SETTLEMENT_PRICE
uint32 FEED_ID_SETTLEMENT_PRICEFEED_ID_IMPLIED_VOLATILITY
uint32 FEED_ID_IMPLIED_VOLATILITYFEED_ID_OPTION_MARK_PRICE
uint32 FEED_ID_OPTION_MARK_PRICEFEED_ID_SPOT_EQUITY
uint32 FEED_ID_SPOT_EQUITYEXPIRY_TYPE_TIMESTAMP
uint8 EXPIRY_TYPE_TIMESTAMPEXPIRY_TYPE_TENOR
uint8 EXPIRY_TYPE_TENOREXCHANGE_BLOCKSCHOLES
uint8 EXCHANGE_BLOCKSCHOLESEXCHANGE_DERIBIT
uint8 EXCHANGE_DERIBITEXCHANGE_BYBIT
uint8 EXCHANGE_BYBITEXCHANGE_OKX
uint8 EXCHANGE_OKXBASE_ASSET_BTC
uint8 BASE_ASSET_BTCBASE_ASSET_ETH
uint8 BASE_ASSET_ETHBASE_ASSET_SPY
uint8 BASE_ASSET_SPYBASE_ASSET_IBIT
uint8 BASE_ASSET_IBITOPTION_TYPE_CALL
uint8 OPTION_TYPE_CALLOPTION_TYPE_PUT
uint8 OPTION_TYPE_PUTIV_LEVEL_TYPE_STRIKE
uint8 IV_LEVEL_TYPE_STRIKEIV_LEVEL_TYPE_MONEYNESS
uint8 IV_LEVEL_TYPE_MONEYNESSSVI_PARAM_A
uint8 SVI_PARAM_ASVI_PARAM_B
uint8 SVI_PARAM_BSVI_PARAM_RHO
uint8 SVI_PARAM_RHOSVI_PARAM_M
uint8 SVI_PARAM_MSVI_PARAM_SIGMA
uint8 SVI_PARAM_SIGMAIFeedProviderBS
common interface for feed providers to implement
Feed
identifier for a single feed
struct Feed {
uint32 id;
struct IFeedProviderBS.FeedParameters parameters;
}FeedParameters
parameters for a feed
struct FeedParameters {
uint8[] enumerable;
bytes other;
}FeedData
output data for a feed
struct FeedData {
int64 value;
uint32 timestamp;
}getLatestFeedData
function getLatestFeedData(struct IFeedProviderBS.Feed feed) external view returns (struct IFeedProviderBS.FeedData)get the latest feed data
Parameters
feed
struct IFeedProviderBS.Feed
the feed to get data for
Return Values
[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.
struct OptionParameters {
int64 expiry;
int64 ivLevelValue;
}RouteDoesNotExist
error RouteDoesNotExist()error emitted when a route does not exist for the specified feed ID
FeedProviderDoesNotExist
error 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 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