Internal ids#
Trading Strategy has several datasets that refer to each other. For example pair dataset refers to exchange dataset via exchange_id
.
These foreign keys, or primary keys, are not stable. They can across different datasets, when data is being healed or reimported. Always access the data using symbolic notation, called slugs or token symbols.
Duplicate token symbols#
Exchanges may have duplicate trading pairs with the same token symbol. The duplicates are usually scam tokens. Trading Strategy access methods try to automatically pick the real trading pair among multiple entries by the pair’s trading volume.
Warning
There is no curated list available, so be careful when accessing tokens and trading pairs by their symbol.
More information#
See
tradingstrategy.types.PrimaryKey
type alias.See
tradingstrategy.exchange.ExchangeUniverse.get_by_chain_and_slug()
methodSee
tradingstrategy.pair.PairUniverse.get_pair_by_ticker_by_exchange()
method