pricedb/model.py
def parse(self, symbol: str) -> (str, str):
        """ Splits the symbol into namespace, symbol tuple """
        symbol_parts = symbol.split(":")
        namespace = None
        mnemonic = symbol

        if len(symbol_parts) > 1:
            namespace = symbol_parts[0]
            mnemonic = symbol_parts[1]

        self.namespace = namespace
        self.mnemonic = mnemonic

        return namespace, mnemonic
def parse(self, symbol: str) -> (str, str):
        symbol_parts = symbol.split(":")
        namespace = None
        mnemonic = symbol

        if len(symbol_parts) > 1:
            namespace = symbol_parts[0]
            mnemonic = symbol_parts[1]

        self.namespace = namespace
        self.mnemonic = mnemonic

        return namespace, mnemonic
def parse ( self , symbol : str ) -> ( str , str ) : symbol_parts = symbol . split ( ":" ) namespace = None mnemonic = symbol if len ( symbol_parts ) > 1 : namespace = symbol_parts [ 0 ] mnemonic = symbol_parts [ 1 ] self . namespace = namespace self . mnemonic = mnemonic return namespace , mnemonic
Splits the symbol into namespace, symbol tuple
Splits the symbol into namespace symbol tuple