예제 #1
0
def mock_bitmex(database, inquirer):  # pylint: disable=unused-argument
    # API key/secret from tests cases here: https://www.bitmex.com/app/apiKeysUsage
    bitmex = Bitmex(
        api_key=b'LAqUlngMIQkIUjXMUreyu3qn',
        secret=b'chNOOS4KvNXR_Xq4k4c9qsfoKWvnDecLATCRlcBwyKDYnWgO',
        database=database,
        msg_aggregator=MessagesAggregator(),
    )

    bitmex.first_connection_made = True
    return bitmex
예제 #2
0
파일: exchanges.py 프로젝트: zalam003/rotki
def create_test_bitmex(
    database: DBHandler,
    msg_aggregator: MessagesAggregator,
) -> Bitmex:
    # API key/secret from tests cases here: https://www.bitmex.com/app/apiKeysUsage
    bitmex = Bitmex(
        api_key=ApiKey('LAqUlngMIQkIUjXMUreyu3qn'),
        secret=ApiSecret(b'chNOOS4KvNXR_Xq4k4c9qsfoKWvnDecLATCRlcBwyKDYnWgO'),
        database=database,
        msg_aggregator=msg_aggregator,
    )
    bitmex.first_connection_made = True
    return bitmex