You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-8Lines changed: 37 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,15 +133,17 @@ mt.cancel_all()
133
133
mt.close_all()
134
134
```
135
135
136
-
#### History fromDate toDate
136
+
# History Dataframe Ready
137
+
138
+
#### History from Date to Date Dataframe
137
139
138
140
```python
139
141
symbol ="EURUSD"
140
142
timeframe ="M1"
141
143
fromDate ="24/02/2021"
142
144
toDate ="24/02/2021"
143
145
144
-
history = mt.history(symbol,timeframe,fromDate,toDate)
146
+
history = mt.historyDataframe(symbol,timeframe,fromDate,toDate)
145
147
print(history)
146
148
147
149
open high low close volume spread
@@ -186,14 +188,14 @@ date
186
188
187
189
```
188
190
189
-
#### Short History
191
+
#### Short History Dataframe
190
192
191
193
```python
192
194
193
195
symbol ="EURUSD"
194
196
timeframe ="M1"
195
197
196
-
history = mt.Shorthistory(symbol,timeframe,1)
198
+
history = mt.ShorthistoryDataframe(symbol,timeframe,10)
197
199
print(history)
198
200
199
201
open high low close volume spread
@@ -238,7 +240,7 @@ date
238
240
239
241
```
240
242
241
-
####History multiple symbol merged DataFrame
243
+
# History multiple symbol merged DataFrame
242
244
243
245
```python
244
246
from ejtraderMT import Metatrader
@@ -251,7 +253,7 @@ timeframe = "M1"
251
253
fromDate ="01/01/2021"
252
254
toDate ="10/01/2021"
253
255
254
-
data = api.historyDataFrame(symbol,symbols,timeframe,fromDate,toDate)
256
+
data = api.historyMultiDataFrame(symbol,symbols,timeframe,fromDate,toDate)
255
257
256
258
print(data)
257
259
open high low close volume spread OPENGBPUSDHIGHGBPUSDLOWGBPUSDCLOSEGBPUSDVOLUMEGBPUSDSPREADGBPUSDOPENAUDUSDHIGHAUDUSDLOWAUDUSDCLOSEAUDUSDVOLUMEAUDUSDSPREADAUDUSD
0 commit comments