PINE LIBRARY
Updated 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()
Release Notes
v2 slight ticker correctionRelease Notes
v3Release Notes
v4 altcoins tickers updateRelease Notes
v5Release Notes
v6Release Notes
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()
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.