PINE LIBRARY
Mis à jour ChainAggLib - library for aggregation of main chain tickers

Library "ChainAggLib"
ChainAggLib — token -> main protocol coin (chain) and top-5 exchange tickers for volume aggregation.
Library only (no plots). All helpers are pure functions and do not modify globals.
norm_sym(s)
Parameters:
s (string)
get_base_from_symbol(full_symbol)
Parameters:
full_symbol (string)
get_chain_for_token(token_symbol)
Parameters:
token_symbol (string)
get_top5_exchange_tickers_for_chain(chain_code)
Parameters:
chain_code (string)
get_top5_exchange_tickers_for_token(token_symbol)
Parameters:
token_symbol (string)
join_tickers(arr)
Parameters:
arr (array<string>)
contains_symbol(arr, symbol)
Parameters:
arr (array<string>)
symbol (string)
contains_current(arr)
Parameters:
arr (array<string>)
get_arr_for_current_token()
get_chain_for_current()
ChainAggLib — token -> main protocol coin (chain) and top-5 exchange tickers for volume aggregation.
Library only (no plots). All helpers are pure functions and do not modify globals.
norm_sym(s)
Parameters:
s (string)
get_base_from_symbol(full_symbol)
Parameters:
full_symbol (string)
get_chain_for_token(token_symbol)
Parameters:
token_symbol (string)
get_top5_exchange_tickers_for_chain(chain_code)
Parameters:
chain_code (string)
get_top5_exchange_tickers_for_token(token_symbol)
Parameters:
token_symbol (string)
join_tickers(arr)
Parameters:
arr (array<string>)
contains_symbol(arr, symbol)
Parameters:
arr (array<string>)
symbol (string)
contains_current(arr)
Parameters:
arr (array<string>)
get_arr_for_current_token()
get_chain_for_current()
Notes de version
v2 slight ticker correctionNotes de version
v3Notes de version
v4 altcoins tickers updateNotes de version
v5Notes de version
v6Notes de version
v7map-based structure data storage and aggregated altcoins ticker lists retrieval
Added:
init_token_database()
get_token_info(db, token_symbol)
Parameters:
db (map<string, string>)
token_symbol (string)
is_token_known(token_symbol)
Parameters:
token_symbol (string)
is_l1_chain(token_symbol)
Parameters:
token_symbol (string)
get_direct_aggregation_tickers(token_symbol)
Parameters:
token_symbol (string)
get_all_tokens()
supports_direct_aggregation()
Notes de version
v8Added:
init_asset_class_map()
init_trading_hours_map()
get_asset_meta(symbol_or_token)
Parameters:
symbol_or_token (string)
get_current_asset_meta()
is_index(sym)
Parameters:
sym (string)
is_crypto_main(sym)
Parameters:
sym (string)
is_commodity(sym)
Parameters:
sym (string)
is_shares(sym)
Parameters:
sym (string)
get_trading_hours(sym)
Parameters:
sym (string)
Notes de version
v9Notes de version
v10added natural gas
Bibliothèque Pine
Dans l'esprit TradingView, l'auteur a publié ce code Pine sous forme de bibliothèque open source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open source, mais la réutilisation de ce code dans des publications est régie par nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Bibliothèque Pine
Dans l'esprit TradingView, l'auteur a publié ce code Pine sous forme de bibliothèque open source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open source, mais la réutilisation de ce code dans des publications est régie par nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.