Skip to content

Commit

Permalink
Merge branch 'release/0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
iamWing committed May 22, 2020
2 parents ba273c4 + 2919abc commit d6fce42
Show file tree
Hide file tree
Showing 8 changed files with 398 additions and 40 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PYTHONPATH=${PWD}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ celerybeat.pid
*.sage.py

# Environments
.env
.venv
env/
venv/
Expand Down
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.1.3] - 2020-05-20
`v0.1.3` is a minor release includes a script to fetch historical ticks of
US contracts for quick use.

### Added
- script `cmd/fetch_us_historical_ticks.py` to fetch historical ticks,

### Changed
- `README` to introduce the usage of the newly included script.

### Notes
- version in `setup.py` remains as `0.1.2` as there is nothing changed for
files included in the package released.

## [v0.1.2] - 2020-05-20
`v0.1.2` is a minor hotfix releases fixed the issue found immediately after the
`v0.1.2` is a minor hotfix release fixed the issue found immediately after the
release of `v0.1.1`.

### Added
Expand All @@ -24,7 +38,7 @@ already at `hh:00:00` or `hh:30:00` by minus 30 minutes directly.
unexpectedly.

### Added
- README section `Known issues`, `Development status` & `Contributions`.
- `README` section `Known issues`, `Development status` & `Contributions`.

### Changed
- `start` is no longer an optional parameter for function
Expand All @@ -42,6 +56,7 @@ returns with `finished` mark as `True` unexpectedly while IB returns less than
1000 records but there're more historical ticks those should be fetched
in next request.

[Unreleased]: https://github.com/Devtography/ibpy_native/compare/v0.1.2...HEAD
[Unreleased]: https://github.com/Devtography/ibpy_native/compare/v0.1.3...HEAD
[v0.1.3]: https://github.com/Devtography/ibpy_native/compare/v0.1.3...v0.1.2
[v0.1.2]: https://github.com/Devtography/ibpy_native/compare/v0.1.2...v0.1.1
[v0.1.1]: https://github.com/Devtography/ibpy_native/compare/v0.1.0...v0.1.1
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ twine = "*"
[packages]
pytz = "*"
typing-extensions = "*"
pandas = "*"

[requires]
python_version = "3.7"
134 changes: 98 additions & 36 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ head_time = bridge.get_earliest_data_point(contract=aapl, data_type='TRADES')
ticks = bridge.get_historical_ticks(contract=aapl, data_type='TRADES', timeout=100)
```

Scripts in `cmd` folder are designed provide instant access to some functions
implemented in `ibpy_native`. You can simply run the Python scripts in virtual
environment to make use of them.
```sh
# Make sure you are at root directory of the package before calling pipenv to
# run the script or enter the virtual environment, as it will load the .env
# file which adds the current directory path to PYTHONPATH.
pipenv shell

# e.g. fetch all historical ticks of YM 2020 MAR contract
python cmd/fetch_us_historical_ticks.py YM fut 202003
```
Other options for the scripts can be found by using the `-h` or `--help` flags.

## System requirements
- Python >= 3.5; Pervious versions are not supported (development is based on
Python 3.7.7)
Expand Down
Empty file added cmd/__init__.py
Empty file.
Loading

0 comments on commit d6fce42

Please sign in to comment.