Skip to main content

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

pymatriz-0.1.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymatriz-0.1.4-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file pymatriz-0.1.4.tar.gz.

File metadata

  • Download URL: pymatriz-0.1.4.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.3

File hashes

Hashes for pymatriz-0.1.4.tar.gz
Algorithm Hash digest
SHA256 02bee48007c70a31abb958c7a745b17bfd92bd919114ed952e3150eb63f98ff9
MD5 c216a68739df22d2d0a7fadf3e06c07a
BLAKE2b-256 17c65c593ee3e13355dd4892cdbddab1f105f487fb6801f83f1feab4426ca599

See more details on using hashes here.

File details

Details for the file pymatriz-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pymatriz-0.1.4-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.3

File hashes

Hashes for pymatriz-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bb47856e22c805e2958849c977c3e85da6cf16800875dce0e5a87c3f9cb46fe5
MD5 01702ebea556a7ca4726a90eae6a54f7
BLAKE2b-256 50b84b462caf11b1cbaf23d9041d37c7b71bc289bfa945a2ca0a7fba8cdfe655

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page