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
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