consts.jl
1 @doc "A list of fiat and fiat-like assets names." # TODO: turn into enum? 2 const fiatnames = Set([ 3 "USD", 4 "USDT", 5 "OUSD", 6 "PAX", 7 "BUSD", 8 "USDC", 9 "DAI", 10 "EUR", 11 "CEUR", 12 "USDN", 13 "CUSD", 14 "SUSD", 15 "TUSD", 16 "USDJ", 17 ]) 18 19 @doc "A set of symbols representing fiat and fiat-like assets" 20 const fiatsyms = Set(Symbol.(fiatnames)) 21 22 @doc "The default separator used in market symbols" 23 const DEFAULT_MARKET_SEPARATOR = raw"/" 24 @doc "A collection of all possible separators used in market symbols" 25 const ALL_MARKET_SEPARATORS = raw"/\-_." 26 @doc "The separator used to separate the settlement currency from the quote currency in a market symbol." 27 const SETTLEMENT_SEPARATOR = raw":" 28 @doc """[From CCTX](https://docs.ccxt.com/en/latest/manual.html#option)""" 29 const FULL_SYMBOL_GROUPS_REGEX = Regex( 30 "([^$(ALL_MARKET_SEPARATORS)]+)[$(ALL_MARKET_SEPARATORS)]([^:]*):?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)", 31 )