original_docstring: As CLI starting point, this function dispatch argument parsing to be supplied to main function.
docstring: As CLI starting point, this function dispatch argument parsing to be supplied to main function.
docstring_tokens: As CLI starting point this function dispatch argument parsing to be supplied to main function .
code: def run():
      """As CLI starting point, this function dispatch argument parsing to be supplied to main function."""
      base_markets = ['BTC', 'TUSD', 'USDT', 'USD', 'EUR', 'PAX', 'USDS']
      exchanges = ['binance', 'hitbtc2', 'poloniex', 'kraken', 'coinbase', 'cexio']
      exchanges = {e: e.strip('_12345 ') for e in exchanges}
  
      parser = argparse.ArgumentParser()
  
      parser.add_argument('-l, --list-indicators',
                          action='store_true',
                          dest='list_indicators',
                          help='List all supported technical indicators')                                                                                                  
                                                                                                                                                                           
      parser.add_argument('-e, --exchange',                                                                                                                                
                          default='binance',                                                                                                                               
                          dest='exchange',                                                                                                                                 
                          nargs='?',                                                                                                                                       
                          choices=exchanges,                                                                                                                               
                          help='Exchange used for watch list symbols.')                                                                                                    
                                                                                                                                                                           
      parser.add_argument('-q', '--quote-currency',                                                                                                                        
                          nargs='?',                                                                                                                                       
                          default='BTC',                                                                                                                                   
                          choices=base_markets,                                                                                                                            
                          help='Base market currency (default BTC)')                                                                                                       
                                                                                                                                                                           
      parser.add_argument('-i', '--indicator',                                                                                                                             
                          metavar='TI',                                                                                                                                    
                          nargs='*',                                                                                                                                       
                          choices=list(load_indicators().keys()),                                                                                                          
                          help='Technical analysis indicators to be showed within chart.')                                                                                 
                                                                                                                                                                           
      parser.add_argument('-m', '--min-volume',                                                                                                                            
                          type=float,                                                                                                                                      
                          nargs='?',                                                                                                                                       
                          dest='min_volume',                                                                                                                               
                          default=0.0,                                                                                                                                     
                          help='Min. 24h volume filter.')                                                                                                                  
  
      args = parser.parse_args()                                                        
      
      if args.list_indicators is True:
          r_code = list_indicators()
      else:
          r_code =  main(args)
  
      sys.exit(r_code)
code_tokens: def run ( ) : base_markets = [ 'BTC' , 'TUSD' , 'USDT' , 'USD' , 'EUR' , 'PAX' , 'USDS' ] exchanges = [ 'binance' , 'hitbtc2' , 'poloniex' , 'kraken' , 'coinbase' , 'cexio' ] exchanges = { e : e . strip ( '_12345 ' ) for e in exchanges } parser = argparse . ArgumentParser ( ) parser . add_argument ( '-l, --list-indicators' , action = 'store_true' , dest = 'list_indicators' , help = 'List all supported technical indicators' ) parser . add_argument ( '-e, --exchange' , default = 'binance' , dest = 'exchange' , nargs = '?' , choices = exchanges , help = 'Exchange used for watch list symbols.' ) parser . add_argument ( '-q' , '--quote-currency' , nargs = '?' , default = 'BTC' , choices = base_markets , help = 'Base market currency (default BTC)' ) parser . add_argument ( '-i' , '--indicator' , metavar = 'TI' , nargs = '*' , choices = list ( load_indicators ( ) . keys ( ) ) , help = 'Technical analysis indicators to be showed within chart.' ) parser . add_argument ( '-m' , '--min-volume' , type = float , nargs = '?' , dest = 'min_volume' , default = 0.0 , help = 'Min. 24h volume filter.' ) args = parser . parse_args ( ) if args . list_indicators is True : r_code = list_indicators ( ) else : r_code = main ( args ) sys . exit ( r_code )
short_docstring: As CLI starting point, this function dispatch argument parsing to be supplied to main function.
short_docstring_tokens: As CLI starting point this function dispatch argument parsing to be supplied to main function .
comment: """As CLI starting point, this function dispatch argument parsing to be supplied to main function."""