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