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
:active_symbols
api_token
app_delete
app_get
app_list
app_markup_details
app_markup_statistics
app_register
app_update
asset_index
authorize
balance
buy
buy_contract_for_multiple_accounts
cancel
cashier
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_financial_assessment
get_limits
get_self_exclusion
get_settings
identity_verification_document_add
kyc_auth_status
landing_company
landing_company_details
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
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_list
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
paymentagent_withdraw_justification
payout_currencies
ping
portfolio
profit_table
proposal
proposal_open_contract
reality_check
residence_list
revoke_oauth_app
sell
sell_contract_for_multiple_accounts
sell_expired
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_investor_password_reset
trading_platform_password_reset
trading_servers
trading_times
transaction
transfer_between_accounts
unsubscribe_email
verify_email
verify_email_cellxpert
website_status