removed redundant print()
This commit is contained in:
parent
c68fe7a685
commit
2e6ded06a9
@ -253,13 +253,14 @@ class TestStrategy(IStrategy):
|
|||||||
dataframe['ha_low'] = heikinashi['low']
|
dataframe['ha_low'] = heikinashi['low']
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Retrieve best bid and best ask
|
# Retrieve best bid and best ask
|
||||||
# ------------------------------------
|
# ------------------------------------
|
||||||
"""
|
"""
|
||||||
ob = self.dp.orderbook(metadata['pair'], 1)
|
# first check if dataprovider is available
|
||||||
print(ob)
|
if self.dp:
|
||||||
dataframe['best_bid'] = ob['bids'][0][0]
|
ob = self.dp.orderbook(metadata['pair'], 1)
|
||||||
dataframe['best_ask'] = ob['asks'][0][0]
|
dataframe['best_bid'] = ob['bids'][0][0]
|
||||||
|
dataframe['best_ask'] = ob['asks'][0][0]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return dataframe
|
return dataframe
|
||||||
|
Loading…
Reference in New Issue
Block a user