Skip to content

Commit 702b00e

Browse files
committed
fix readme
1 parent 399d924 commit 702b00e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Diff for: README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
## Usage
66

77
```
8-
mt4_hst.read_hst(hst_file_path)
8+
import mt4_hst
9+
df = mt4_hst.read_hst('pass to hst file')
910
```
1011

12+
This method returns `pandas.DataFrame`.
13+
1114
## Installation
1215

1316
```

Diff for: mt4_hst/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ def read_hst(filepath):
2121
dtype = [('time', 'u8'), ('open', 'f8'), ('high', 'f8'), ('low', 'f8'),
2222
('close', 'f8'), ('volume', 'i8'), ('s', 'i4'), ('r', 'i8')]
2323
df = pd.DataFrame(np.frombuffer(f.read(), dtype=dtype).astype(dtype[:-2]))
24-
df['time'] = df['time']
2524
df['time'] = pd.to_datetime(df['time'], unit='s')
2625
return df

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_requires():
2727

2828
setup(
2929
name="mt4_hst",
30-
version="0.1.0",
30+
version="0.1.2",
3131
url="https://github.com/fx-kirin/mt4_hst",
3232
license='MIT',
3333

0 commit comments

Comments
 (0)