update_price_oracle_concurrent
Documentation for eth_defi.uniswap_v3.oracle.update_price_oracle_concurrent function.
- update_price_oracle_concurrent(oracle, json_rpc_url, pool_contract_address, start_block, end_block, reverse_token_order=False, max_workers=16)
Feed price oracle data for a given block range using using a thread pool
Example:
- Parameters
oracle (eth_defi.price_oracle.oracle.PriceOracle) – Price oracle to update
json_rpc_url (str) – JSON-RPC URL
pool_contract_address (str) – Pool contract address
start_block (int) – First block to include data for
end_block (int) – Last block to include data for (inclusive)
reverse_token_order (bool) – If pair token0 is the quote token to calculate the price.
max_workers (int) – How many threads to allocate for JSON-RPC IO.