Working on Bittrex implementation and unit tests

This commit is contained in:
fredfortier
2017-08-28 22:50:46 -04:00
parent 753881bade
commit f4db9f7b1e
6 changed files with 119 additions and 44 deletions
+4 -6
View File
@@ -19,18 +19,16 @@ class BittrexTestCase(BaseExchangeTestCase):
self.exchange = Bittrex(
key=auth['key'],
secret=auth['secret'],
base_currency='usd'
base_currency='btc'
)
def test_order(self):
log.info('creating order')
asset = self.exchange.get_asset('neo_eth')
asset = self.exchange.get_asset('neo_btc')
order_id = self.exchange.order(
asset=asset,
style=LimitOrder(limit_price=200),
limit_price=200,
amount=0.5,
stop_price=None
limit_price=0.00055,
amount=1,
)
log.info('order created {}'.format(order_id))
pass