Skip to content

Instantly share code, notes, and snippets.

View dantimofte's full-sized avatar

Dan Timofte dantimofte

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dantimofte on github.
  • I am qlaxde (https://keybase.io/qlaxde) on keybase.
  • I have a public key ASCnG6c0bjxgM0IU4LsgSYSPiU-c4N1cUaDYd4vfXqAK7Qo

To claim this, I am signing this object:

import os
import pytest
from orderbooks.db_models import OhlcvdataModel
def add_record(session):
new_rec = OhlcvdataModel(
name='bitfinex'
)
session.add(new_rec)
session.commit()
import os
import sys
import logging
import signal
import time
import asyncio
class BOT:
@ensure_authorized
def _cb_get_balance(self, bot, update, args):
LOGGER.info(f"{update.message.chat.username} : /getbalance {args}")
chat_id = update.message.chat.id
if not self.userdata[chat_id]['getbalance']:
message = f"<pre> please set a list of currencies using /set </pre>"
bot.send_message(chat_id, text=message, parse_mode='HTML')
balances = self.btfx_client.balances()