Refactoring to optimize multiple exchanges

This commit is contained in:
fredfortier
2017-08-28 16:19:03 -04:00
parent b4755111a9
commit 1be39f97a1
7 changed files with 87 additions and 90 deletions
+9
View File
@@ -24,6 +24,15 @@ class BitfinexTestCase(BaseExchangeTestCase):
def test_order(self):
log.info('creating order')
asset = self.exchange.get_asset('eth_usd')
order_id = self.exchange.order(
asset=asset,
style=LimitOrder(limit_price=200),
limit_price=200,
amount=0.5,
stop_price=None
)
log.info('order created {}'.format(order_id))
pass
def test_open_orders(self):
+9
View File
@@ -24,6 +24,15 @@ class BittrexTestCase(BaseExchangeTestCase):
def test_order(self):
log.info('creating order')
asset = self.exchange.get_asset('neo_eth')
order_id = self.exchange.order(
asset=asset,
style=LimitOrder(limit_price=200),
limit_price=200,
amount=0.5,
stop_price=None
)
log.info('order created {}'.format(order_id))
pass
def test_open_orders(self):