Module deriv_api.cache
Classes
class Cache (api, storage)
-
Cache - A class for implementing in-memory and persistent cache
The real implementation of the underlying cache is delegated to the storage object (See the params).
The storage object needs to implement the API.
Examples
- Read the latest active symbols
>>> symbols = await api.active_symbols()
- Read the data from cache if available
>>> cached_symbols = await api.cache.active_symbols()
Parameters
api : deriv_api.DerivAPI API instance to get data that is not cached storage : Object A storage instance to use for caching
Ancestors
Inherited members
DerivAPICalls
:account_closure
account_security
account_statistics
active_symbols
affiliate_account_add
api_token
app_delete
app_get
app_list
app_markup_details
app_register
app_update
asset_index
authorize
balance
buy
buy_contract_for_multiple_accounts
cancel
cashier
cashier_payments
cashier_withdrawal_cancel
change_email
change_password
contract_update
contract_update_history
contracts_for
copy_start
copy_stop
copytrading_list
copytrading_statistics
crypto_config
document_upload
economic_calendar
exchange_rates
forget
forget_all
get_account_status
get_account_types
get_available_accounts_to_transfer
get_financial_assessment
get_limits
get_self_exclusion
get_settings
identity_verification_document_add
landing_company
landing_company_details
link_wallet
login_history
logout
mt5_deposit
mt5_get_settings
mt5_login_list
mt5_new_account
mt5_password_change
mt5_password_check
mt5_password_reset
mt5_withdrawal
new_account_maltainvest
new_account_real
new_account_virtual
new_account_wallet
notification_event
oauth_apps
p2p_advert_create
p2p_advert_info
p2p_advert_list
p2p_advert_update
p2p_advertiser_adverts
p2p_advertiser_create
p2p_advertiser_info
p2p_advertiser_payment_methods
p2p_advertiser_relations
p2p_advertiser_update
p2p_chat_create
p2p_order_cancel
p2p_order_confirm
p2p_order_create
p2p_order_dispute
p2p_order_info
p2p_order_list
p2p_order_review
p2p_payment_methods
p2p_ping
payment_methods
paymentagent_create
paymentagent_details
paymentagent_list
paymentagent_transfer
paymentagent_withdraw
payout_currencies
ping
portfolio
profit_table
proposal
proposal_open_contract
reality_check
request_report
reset_password
residence_list
revoke_oauth_app
sell
sell_contract_for_multiple_accounts
sell_expired
service_token
set_account_currency
set_financial_assessment
set_self_exclusion
set_settings
statement
states_list
ticks
ticks_history
time
tnc_approval
topup_virtual
trading_durations
trading_platform_accounts
trading_platform_deposit
trading_platform_investor_password_change
trading_platform_investor_password_reset
trading_platform_new_account
trading_platform_password_change
trading_platform_password_reset
trading_platform_product_listing
trading_platform_withdrawal
trading_servers
trading_times
transaction
transfer_between_accounts
verify_email
website_status