PINE LIBRARY

Spot Symbols for Crypto

Library "CryptoSpotSymbols"
This Library has one purpose only. It generate Symbols for the Crypto Spot Market, like all the currencies pairs of most Crypto Exchanges available to TradingView.

Have a look at .find(), which is an all in one function.

Binance(basecurrency)
  Generate 27 Symbols for the Spot Market of Binance.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [ARS, BIDR, BNB, BUSD, BRL, BTC, DAI, DOT, DOGE, ETH, EUR, GBP, IDRT, NGN, PLN, RON, RUB, TRY, TRX, TUSD, UAH, USD, USDC, USDT, VAI, XRP, ZAR]

BinanceUS(basecurrency)
  Generate seven Symbols for the Spot Market of BinanceUS.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BUSD, BTC, DAI, ETH, USD, USDC, USDT]

Bitfinex(basecurrency)
  Generate 12 Symbols for the Spot Market of Bitfinex.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, CNHT, EUR, EUT, GBR, JPY, MIM, MXNT, TRY, USD, UST, XAUT]

bitFlyer(basecurrency)
  Generate three Symbols for the Spot Market of bitFlyer.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, JPY, USD]

Bitget(basecurrency)
  Generate seven Symbols for the Spot Market of Bitget.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BRL, BTC, ETH, EUR, GBP, USDC, USDT]

Bithumb(basecurrency)
  Generate two Symbols for the Spot Market of Bithumb.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [KRW, BTC]

bitkub(basecurrency)
  Generate one Symbol for the Spot Market of bitkub.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: THB

BitMEX(basecurrency)
  Generate two Symbols for the Spot Market of BitMEX.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [USDT, XBT]

bitpanda_pro(basecurrency)
  Generate six Symbols for the Spot Market of bitpanda pro.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [CHF, EUR, EUROC, GBP, USDC, USDT]

bitrue(basecurrency)
  Generate nine Symbols for the Spot Market of bitrue.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [ADA, BTR, BUSD, BTC, ETH, SOL, USDC, USDT, XRP]

Bitstamp(basecurrency)
  Generate eight Symbols for the Spot Market of Bitstamp.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, EUR, ETH, GBP, PAX, USD, USDC, USDT]

BITTREX(basecurrency)
  Generate six Symbols for the Spot Market of BITTREX.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, EUR, ETH, USD, USDC, USDT]

BTSE(basecurrency)
  Generate 15 Symbols for the Spot Market of BTSE.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [AED, AUD, CAD, CHF, EUR, GBP, HKD, INR, JPY, SGD, USD, USDC, USDP, USDT]

BYBIT(basecurrency)
  Generate five Symbols for the Spot Market of BYBIT.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, DAI, EUR, USDC, USDT]

CapitalCom(basecurrency)
  Generate five Symbols for the Spot Market of capital.com.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, EUR, GBP, JPY, USD]

coinbase(basecurrency)
  Generate seven Symbols for the Spot Market of coinbase.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, DAI, ETH, EUR, GBP, USD, USDT]

CoinEx(basecurrency)
  Generate three Symbols for the Spot Market of CoinEx.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, USDC, USDT]

CurrencyCom(basecurrency)
  Generate 30 Symbols for the Spot Market of currency.com.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [AUD, BGN, BTC, BYN, CAD, CHF, CRC, CZK, DKK, ETH, EUR, GBP, HUF, IDR, ILS, INR, MXN, NOK, NZD, PHP, PKR, RON, RUB, SEK, SGD, THB, TRY, USD, USDT, ZAR]

Delta(basecurrency)
  Generate one Symbol for the Spot Market of Delta.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: USDT

Deribit(basecurrency)
  Generate two Symbols for the Spot Market of Deribit.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, USDC]

easyMarkets(basecurrency)
  Generate one Symbol for the Spot Market of easyMarkets.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: USD

Eightcap(basecurrency)
  Generate one Symbol for the Spot Market of Eightcap.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: USD

ExMo(basecurrency)
  Generate ten Symbols for the Spot Market of ExMo.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, DAI, ETH, EUR, GBP, LTC, PLN, UAH, USD, USDT]

FOREXcom(basecurrency)
  Generate four Symbols for the Spot Market of FOREX.com.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [AUD, EUR, GBP, USD]

FXCM(basecurrency)
  Generate three Symbols for the Spot Market of FXCM.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [EUR, GBP, USD]

GateIO(basecurrency)
  Generate five Symbols for the Spot Market of Gate.io.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, ETH, TRY, USD, USDT]

Gemini(basecurrency)
  Generate ten Symbols for the Spot Market of Gemini.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BCH, BTC, DAI, ETH, EUR, GBP, GUSD, LTC, SGD, USDT]

Kraken(basecurrency)
  Generate 14 Symbols for the Spot Market of Kraken.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [AED, AUD, BTC, CAD, CHF, DAI, DOT, ETH, EUR, GBP, JPY, USD, USDC, USDT]

KuCoin(basecurrency)
  Generate 13 Symbols for the Spot Market of KuCoin.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BRL, BTC, DAI, DOGE, ETH, EUR, GBP, KCS, TRX, TUSD, USD, USDC, USDT]

MEXC(basecurrency)
  Generate six Symbols for the Spot Market of MEXC.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, BUSD, ETH, TUSD, USDC, USDT]

OANDA(basecurrency)
  Generate one Symbol for the Spot Market of OANDA.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: USD

OKX(basecurrency)
  Generate six Symbols for the Spot Market of OKX.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, DAI, ETH, EURT, USDC, USDT]

Pepperstone(basecurrency)
  Generate one Symbol for the Spot Market of Pepperstone.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: USD

phemex(basecurrency)
  Generate four Symbols for the Spot Market of phemex.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BRZ, TRY, USDC, USDT]

POLONIEX(basecurrency)
  Generate nine Symbols for the Spot Market of POLONIEX.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BNB, BTC, BUSD, ETH, TRX, TUSD, USDC, USDD, USDT]

Pyth(basecurrency)
  Generate three Symbols for the Spot Market of Pyth.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BRL, RUB, USD]

Skilling(basecurrency)
  Generate four Symbols for the Spot Market of Skilling.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [EUR, GBP, JPY, USD]

TimeX(basecurrency)
  Generate six Symbols for the Spot Market of TimeX.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [AUDT, BTC, ETH, USD, USDC, USDT]

TradeStation(basecurrency)
  Generate four Symbols for the Spot Market of TradeStation.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, ETH, USD, USDC]

UpBit(basecurrency)
  Generate four Symbols for the Spot Market of UpBit.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, KRW, SGD, USDT]

whitebit(basecurrency)
  Generate 13 Symbols for the Spot Market of whitebit.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [BTC, DAI, DECL, EUR, EURT, GEL, KZT, TRY, TUSD, UAH, USD, USDC, USDT]

WOOX(basecurrency)
  Generate two Symbols for the Spot Market of WOO.
  Parameters:
    basecurrency (simple string): Its the Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`.
  Returns: [USDC, USDT]

find(exchange, basecurrency)
  Generate up to 30 Symbols for the Spot Market, depending on the market picked.
  Parameters:
    exchange (simple string): The name of an Exchange. Case insensitivity. Optional. Default value is `syminfo.prefix`. If something else is put in here it will return `na` values.
    basecurrency (simple string): The Basecurrency to generate the Symbols with. Optional. Default value is `syminfo.basecurrency`
  Returns: 30x string as tuple
formattingstrings

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 a publication is governed by House rules.

Disclaimer