Exemple #1
0
 def async_save():
     Ticker.insert(**d).on_conflict_ignore().execute()
     print(
         jh.color('ticker: {}-{}-{}: {}'.format(
             jh.timestamp_to_time(d['timestamp']), exchange, symbol, ticker
         ), 'yellow')
     )
Exemple #2
0
 def async_save() -> None:
     Ticker.insert(**d).on_conflict_ignore().execute()
     print(
         jh.color(f'ticker: {jh.timestamp_to_time(d["timestamp"])}-{exchange}-{symbol}: {ticker}', 'yellow')
     )