Python connector for Primary DMA (Matriz) Rest and Websocket APIs.
Project description
Overview
pymatriz is a python library that allows interactions with Primary DMA (Matriz) Rest and Websocket APIs.
Installing
pymatriz is available at the Python Package Index repository. Install and update using pip:
pip3 install pymatriz
API Credentials
Credentials provided by your broker which use Primary DMA (Matriz) platform.
Usage
import datetime
from pymatriz.enums import MarketDataEntry, Market
from pymatriz.client import MatrizAPIClient
client = MatrizAPIClient(username="", password="")
# Real-time message handling
client.add_market_data_handler(lambda msg: print(msg))
# Error handling
client.set_exception_handler(lambda e: print(e))
# Negotiate Auth Token and connects to websocket
client.connect()
# Rest API call + websocket subscription
print(client.get_daily_history(["GGAL"], terms=[MarketDataEntry.TERM_48HS], market=Market.MERVAL, start_date=datetime.date(2020, 10, 5)))
# Ends websocket connection
client.close()
Disclaimer
The library is built as a result of a reverse engineering process, so use it on your own behalf.
This library is provided ‘as is’ without warranty of any kind, either express or implied, including, but not limited to, the implied warranties of fitness for a purpose, or the warranty of non-infringement.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymatriz-0.1.3.tar.gz.
File metadata
- Download URL: pymatriz-0.1.3.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8547cee6b1e73425469d726c37ad203b3a437adeed4f44a813a40f5c3cefefb1
|
|
| MD5 |
33bf1e1b93f166f8a4ba9e1885a72cbf
|
|
| BLAKE2b-256 |
af8c87e4840928cecc8cd6115b23511a9f20509ceaa075fe5118beed9966902b
|
File details
Details for the file pymatriz-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pymatriz-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a6cbeb43c39bee06de71a87fd27b96a2462d31d6f81279176283f12dd3381f4
|
|
| MD5 |
8e6e50eccecf3101fbce57ff2e19362c
|
|
| BLAKE2b-256 |
7732946b27737fe5e594e415f2d833ae9eb630813a5ce281f35757310ed0759a
|