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.
- Anchor
Fetch Task - / Load a parse an Anchor based solana account.
- Bound
Task - Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
- Buffer
Layout Parse Task - / Return the deserialized value from a stringified buffer.
- Cache
Task - Execute a job and store the result in a variable to reference later.
- Comparison
Task - Conditional
Task - This task will run the
attempt
on the subtasks in an effort to produce a valid numerical result. Ifattempt
. fails to produce an acceptable result,on_failure
subtasks will be run instead. - Cron
Parse Task - Return a timestamp from a crontab instruction.
- Defi
Kingdoms Task - / Fetch the swap price from DefiKingdoms.
- Divide
Task - This task will divide a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
- Ewma
Task - History
Function Task - Http
Task - 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.
- Json
Parse Task - 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.
- Jupiter
Swap Task - Fetch the simulated price for a swap on JupiterSwap.
- Lending
Rate Task - / Fetch the lending rates for various Solana protocols
- LpExchange
Rate Task - Fetch the current swap price for a given liquidity pool
- LpToken
Price Task - Fetch LP token price info from a number of supported exchanges.
- Mango
Perp Market Task - / Fetch the current price for a Mango perpetual market
- Marinade
State Task - MaxTask
- Returns the maximum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
- Mean
Task - Returns the mean (average) of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
- Median
Task - 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.
- Multiply
Task - This task will multiply a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
- Oracle
Task - Fetch the current price of a Solana oracle protocol.
- Pancakeswap
Exchange Rate Task - / Fetch the swap price from PancakeSwap.
- Perp
Market Task - / Fetch the current price of a perpetual market.
- PowTask
- Round the current running result to an exponential power.
- Regex
Extract Task - / Find a pattern within a string of a previous task and extract a group number.
- Round
Task - Round the current running result to a set number of decimal places.
- Serum
Swap Task - / Fetch the latest swap price on Serum’s orderbook
- Solana
Account Data Fetch Task - / Fetch the account data in a stringified buffer format.
- SplStake
Pool Task - / Fetch the JSON representation of an SPL Stake Pool account.
- SplToken
Parse Task - / Fetch the JSON representation of an SPL token mint.
- Subtract
Task - This task will subtract a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
- Sushiswap
Exchange Rate Task - / Fetch the swap price from SushiSwap.
- Sysclock
Offset Task - / 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.
- Twap
Task - 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.
- Uniswap
Exchange Rate Task - / Fetch the swap price from UniSwap.
- Value
Task - Returns a specified value.
- Vwap
Task - Websocket
Task - Opens and maintains a websocket for light speed data retrieval.
- XStep
Price Task