Module oracle_job

Source
Expand description

Nested message and enum types in OracleJob.

Modules§

add_task
Nested message and enum types in AddTask.
buffer_layout_parse_task
Nested message and enum types in BufferLayoutParseTask.
cache_task
Nested message and enum types in CacheTask.
comparison_task
Nested message and enum types in ComparisonTask.
cron_parse_task
Nested message and enum types in CronParseTask.
defi_kingdoms_task
Nested message and enum types in DefiKingdomsTask.
divide_task
Nested message and enum types in DivideTask.
history_function_task
Nested message and enum types in HistoryFunctionTask.
http_task
Nested message and enum types in HttpTask.
json_parse_task
Nested message and enum types in JsonParseTask.
jupiter_swap_task
Nested message and enum types in JupiterSwapTask.
lending_rate_task
Nested message and enum types in LendingRateTask.
lp_exchange_rate_task
Nested message and enum types in LpExchangeRateTask.
lp_token_price_task
Nested message and enum types in LpTokenPriceTask.
multiply_task
Nested message and enum types in MultiplyTask.
oracle_task
Nested message and enum types in OracleTask.
perp_market_task
Nested message and enum types in PerpMarketTask.
pow_task
Nested message and enum types in PowTask.
round_task
Nested message and enum types in RoundTask.
spl_token_parse_task
Nested message and enum types in SplTokenParseTask.
subtract_task
Nested message and enum types in SubtractTask.
task
Nested message and enum types in Task.
value_task
Nested message and enum types in ValueTask.
x_step_price_task
Nested message and enum types in XStepPriceTask.

Structs§

AddTask
This task will add a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
AnchorFetchTask
/ Load a parse an Anchor based solana account.
BoundTask
Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
BufferLayoutParseTask
/ Return the deserialized value from a stringified buffer.
CacheTask
Execute a job and store the result in a variable to reference later.
ComparisonTask
ConditionalTask
This task will run the attempt on the subtasks in an effort to produce a valid numerical result. If attempt. fails to produce an acceptable result, on_failure subtasks will be run instead.
CronParseTask
Return a timestamp from a crontab instruction.
DefiKingdomsTask
/ Fetch the swap price from DefiKingdoms.
DivideTask
This task will divide a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
EwmaTask
HistoryFunctionTask
HttpTask
The adapter will report the text body of a successful HTTP request to the specified url, or return an error if the response status code is greater than or equal to 400.
JsonParseTask
The adapter walks the path specified and returns the value found at that result. If returning JSON data from the HttpGet or HttpPost adapters, you must use this adapter to parse the response.
JupiterSwapTask
Fetch the simulated price for a swap on JupiterSwap.
LendingRateTask
/ Fetch the lending rates for various Solana protocols
LpExchangeRateTask
Fetch the current swap price for a given liquidity pool
LpTokenPriceTask
Fetch LP token price info from a number of supported exchanges.
MangoPerpMarketTask
/ Fetch the current price for a Mango perpetual market
MarinadeStateTask
MaxTask
Returns the maximum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
MeanTask
Returns the mean (average) of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
MedianTask
Returns the median (middle) of all the results returned by the provided subtasks and subjobs. Nested tasks must return a Number.
MinTask
Returns the minimum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
MultiplyTask
This task will multiply a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
OracleTask
Fetch the current price of a Solana oracle protocol.
PancakeswapExchangeRateTask
/ Fetch the swap price from PancakeSwap.
PerpMarketTask
/ Fetch the current price of a perpetual market.
PowTask
Round the current running result to an exponential power.
RegexExtractTask
/ Find a pattern within a string of a previous task and extract a group number.
RoundTask
Round the current running result to a set number of decimal places.
SerumSwapTask
/ Fetch the latest swap price on Serum’s orderbook
SolanaAccountDataFetchTask
/ Fetch the account data in a stringified buffer format.
SplStakePoolTask
/ Fetch the JSON representation of an SPL Stake Pool account.
SplTokenParseTask
/ Fetch the JSON representation of an SPL token mint.
SubtractTask
This task will subtract a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
SushiswapExchangeRateTask
/ Fetch the swap price from SushiSwap.
SysclockOffsetTask
/ Return the difference between an oracle’s clock and the current timestamp at SYSVAR_CLOCK_PUBKEY.
Task
Represents a singular operation performed by an oracle to yield an eventual numerical result.
TpsTask
/ Fetch the current transactions per second.
TwapTask
Takes a twap over a set period for a certain aggregator. Aggregators have an optional history buffer account storing the last N accepted results. The TwapTask will iterate over an aggregators history buffer and calculate the time weighted average of the samples within a given time period.
UniswapExchangeRateTask
/ Fetch the swap price from UniSwap.
ValueTask
Returns a specified value.
VwapTask
WebsocketTask
Opens and maintains a websocket for light speed data retrieval.
XStepPriceTask