Expand description

Nested message and enum types in OracleJob.

Modules

Structs

  • This task will add a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
  • / Load a parse an Anchor based solana account.
  • Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
  • / Return the deserialized value from a stringified buffer.
  • Execute a job and store the result in a variable to reference later.
  • 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.
  • Return a timestamp from a crontab instruction.
  • / Fetch the swap price from DefiKingdoms.
  • This task will divide a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
  • 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.
  • 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.
  • Fetch the simulated price for a swap on JupiterSwap.
  • / Fetch the lending rates for various Solana protocols
  • Fetch the current swap price for a given liquidity pool
  • Fetch LP token price info from a number of supported exchanges.
  • / Fetch the current price for a Mango perpetual market
  • Returns the maximum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
  • Returns the mean (average) of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
  • Returns the median (middle) of all the results returned by the provided subtasks and subjobs. Nested tasks must return a Number.
  • Returns the minimum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
  • This task will multiply a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
  • Fetch the current price of a Solana oracle protocol.
  • / Fetch the swap price from PancakeSwap.
  • / Fetch the current price of a perpetual market.
  • Round the current running result to an exponential power.
  • / Find a pattern within a string of a previous task and extract a group number.
  • Round the current running result to a set number of decimal places.
  • / Fetch the latest swap price on Serum’s orderbook
  • / Fetch the account data in a stringified buffer format.
  • / Fetch the JSON representation of an SPL Stake Pool account.
  • / Fetch the JSON representation of an SPL token mint.
  • This task will subtract a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
  • / Fetch the swap price from SushiSwap.
  • / Return the difference between an oracle’s clock and the current timestamp at SYSVAR_CLOCK_PUBKEY.
  • Represents a singular operation performed by an oracle to yield an eventual numerical result.
  • / Fetch the current transactions per second.
  • 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.
  • / Fetch the swap price from UniSwap.
  • Returns a specified value.
  • Opens and maintains a websocket for light speed data retrieval.