Enhanced JGTPy
Project description
jgtpy
JGTPyIndicators & Signals Prep Service
Installation
pip install -U jgtpy
Example
>>> import pandas as pd
>>> import jgtpy
>>> df=jgtpy.getPH('EUR/USD','H4')
>>>
>>> # retrieve 3000 periods and generate from the DF
>>> df=jgtpy.getPH('EUR/USD','H4',3000,with_index=False)
>>> dfi=jgtpy.createFromDF(df)
>>>
>>> # Create with Timerange
>>> start="11.17.2022 00:00:00"
>>> end="11.25.2022 00:00:00"
>>> df=jgtpy.createByRange("USD/CAD","m15",start,end)
>>>
>>> # offsets date for retreival
>>> dtfirst_with_offset=jgtetl.svc_offset_dt_by_tf(dtfirst,ctx.timeframe)
>>> df=createByRange(ctx.instrument,ctx.timeframe,dtfirst_with_offset,dtlast)
More
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jgtpy-0.1.39.tar.gz
(36.9 kB
view details)
Built Distribution
jgtpy-0.1.39-py3-none-any.whl
(44.0 kB
view details)
File details
Details for the file jgtpy-0.1.39.tar.gz
.
File metadata
- Download URL: jgtpy-0.1.39.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4497a920e2a8b6581b86aa050bb55af03a73b402123973779a1e412cd91545 |
|
MD5 | 4d7a8c303cd4f956e066179ffc7931c5 |
|
BLAKE2b-256 | 6ebd5ce217e2398343c5f67d462ea93792922837631983acfadcc2ba0a960317 |
File details
Details for the file jgtpy-0.1.39-py3-none-any.whl
.
File metadata
- Download URL: jgtpy-0.1.39-py3-none-any.whl
- Upload date:
- Size: 44.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e06e7276eda24dc2021442e52e5037b5f6ae218281ee5e459bae2c231f9fd3ce |
|
MD5 | f9e9f855b89b32a7fd39c08e336854fd |
|
BLAKE2b-256 | b79160045b7675fd2ecf5d6985d3b6fbd672ddc784e8bb81f73b99f3e08181f1 |