pymaya intract with
pip install pymaya example:
from datetime import date
from pymaya.maya import Maya
def main():
maya = Maya()
all_securities = maya.get_all_securities()
print(all_securities)
maya.get_details("739037")
historical_prices = maya.get_price_history(security_id="739037", from_data=date(2017, 12, 31))
for fund_object in historical_prices:
print(fund_object)
maya.get_details("5118393")
historical_prices = maya.get_price_history(security_id="5118393", from_data=date(2017, 12, 31))
for fund_object in historical_prices:
print(fund_object)
if __name__ == "__main__":
main()
Release files for pymaya 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymaya-0.2.0.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymaya-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.9 kB
Release files / pymaya-0.2.0.tar.gz
| Download URL | pymaya-0.2.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb12f814d34a4baca459fe31c63fdbbfa1f85f520acbac3c2572631474f0724b
|
|
BLAKE2b-256 checksum How to use checksums |
aa20ae1ced4e5eb0b0faef3b8b587becc87b9caddb428a0a4ff0f44f387a30ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Release files / pymaya-0.2.0-py3-none-any.whl
| Download URL | pymaya-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8333749b1617577447a6de5be4d6c5bf38fb6e8fb61440fe6df85c88debd996a
|
|
BLAKE2b-256 checksum How to use checksums |
f6f74de5153ec74028e30e64f7807513ac04cbb3198bb894dc21efc784fa6655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|