Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Emerson Pedroso committed Feb 26, 2021
1 parent 615d1e8 commit 6b5d6e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ejtraderMT/api/platafrom.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import pandas as pd
from datetime import datetime
import time
from pytz import timezone
tz = timezone('UTC')

class Functions:
def __init__(self, host=None):
Expand Down Expand Up @@ -314,7 +316,7 @@ def orders(self):
return json.loads(json.dumps(self.api.Command(action="ORDERS")))


def Shorthistory(self, symbol, chartTF, fromDate, toDate):
def Shorthistory(self, symbol, chartTF, fromDate):

if(chartTF == 'TICK'):
data = json.loads(json.dumps(self.api.Command(action="HISTORY", actionType="DATA", symbol=symbol, chartTF=chartTF, fromDate=datetime.utcnow().timestamp() - (fromDate * 60))))
Expand Down
2 changes: 1 addition & 1 deletion test/ShortMultipleDataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
timeframe = "M1"


data = api.ShorthistoryDataFrame(symbol,symbols,timeframe,3)
data = api.ShorthistoryDataframe(symbol,timeframe,3)


print(data)
Expand Down

0 comments on commit 6b5d6e2

Please sign in to comment.