Got trading algorithm and related pieces

This commit is contained in:
Frederic Fortier
2017-08-14 18:37:40 -04:00
parent fcff8c7438
commit 05ae879c4f
7 changed files with 420 additions and 9 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class BaseExchangeTestCase():
pass
@abstractmethod
def test_spot_value(self):
def test_get_spot_value(self):
pass
@abstractmethod
+14 -2
View File
@@ -64,8 +64,20 @@ class BitfinexTestCase(BaseExchangeTestCase):
log.info('canceled order: {}'.format(response))
pass
def test_spot_value(self):
log.info('spot valud not implemented')
def test_get_spot_value(self):
log.info('spot value not implemented')
bitfinex = Bitfinex()
assets = [
bitfinex.get_asset('eth_usd'),
bitfinex.get_asset('etc_usd'),
bitfinex.get_asset('eos_usd'),
]
# assets = bitfinex.get_asset('eth_usd')
value = bitfinex.get_spot_value(
assets=assets,
field='close',
data_frequency='minute'
)
pass
def test_tickers(self):