Skip to main content

Midgard Public API

Project description

xchainpy2-midgard-maya

The Midgard Public API queries MAYAChain and prepares information about the network to be readily available for public users. The API parses transaction event data from MAYAChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with MAYAChain protocol, users should query MAYANode directly.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 2.16.0
  • Package version: 2.16.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import xchainpy2_midgard_maya 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import xchainpy2_midgard_maya

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import xchainpy2_midgard_maya
from xchainpy2_midgard_maya.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = xchainpy2_midgard_maya.SpecificationApi(xchainpy2_midgard_maya.ApiClient(configuration))

try:
    # Documentation
    api_instance.get_docs()
except ApiException as e:
    print("Exception when calling SpecificationApi->get_docs: %s\n" % e)

# create an instance of the API class
api_instance = xchainpy2_midgard_maya.SpecificationApi(xchainpy2_midgard_maya.ApiClient(configuration))

try:
    # Swagger File
    api_instance.get_swagger()
except ApiException as e:
    print("Exception when calling SpecificationApi->get_swagger: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
SpecificationApi get_docs GET /v2/doc Documentation
SpecificationApi get_swagger GET /v2/swagger.json Swagger File
DefaultApi get_actions GET /v2/actions Actions List
DefaultApi get_affiliate_history GET /v2/history/affiliate Affiliate History
DefaultApi get_balance GET /v2/balance/{address} Current balance for an address
DefaultApi get_borrower_detail GET /v2/borrower/{address} Borrower Details
DefaultApi get_borrowers_addresses GET /v2/borrowers Borrowers List
DefaultApi get_cacao_pool_detail GET /v2/cacaopool/{address} CACAOPool Details
DefaultApi get_cacao_pool_history GET /v2/history/cacaopool CacaoPool total members and units History
DefaultApi get_cacao_price_history GET /v2/history/cacao Cacao price history in USD
DefaultApi get_churns GET /v2/churns Churns List
DefaultApi get_depth_history GET /v2/history/depths/{pool} Depth and Price History
DefaultApi get_earnings_history GET /v2/history/earnings Earnings History
DefaultApi get_health GET /v2/health Health Info
DefaultApi get_holders GET /v2/holders Current top holders for an asset
DefaultApi get_known_pools GET /v2/knownpools Known Pools List
DefaultApi get_liquidity_history GET /v2/history/liquidity_changes Liquidity Changes History
DefaultApi get_member_detail GET /v2/member/{address} Member Details
DefaultApi get_members_adresses GET /v2/members Members List
DefaultApi get_network_data GET /v2/network Network Data
DefaultApi get_nodes GET /v2/nodes Nodes List
DefaultApi get_pool GET /v2/pool/{asset} Details of a Pool
DefaultApi get_pool_stats GET /v2/pool/{asset}/stats Pool Statistics
DefaultApi get_pools GET /v2/pools Pools List
DefaultApi get_reserve_history GET /v2/history/reserve Reserve income and expenses over bucketed history
DefaultApi get_saver_detail GET /v2/saver/{address} Saver Details
DefaultApi get_savers_history GET /v2/history/savers/{pool} Savers Units and Depth History
DefaultApi get_stats GET /v2/stats Global Stats
DefaultApi get_swap_history GET /v2/history/swaps Swaps History
DefaultApi get_thor_name_detail GET /v2/mayaname/lookup/{name} THORName Details
DefaultApi get_thor_names_by_address GET /v2/mayaname/rlookup/{address} Gives a list of THORNames by reverse lookup
DefaultApi get_thor_names_owner_by_address GET /v2/mayaname/owner/{address} THORName owner
DefaultApi get_tvl_history GET /v2/history/tvl Total Value Locked History
DefaultApi get_votes GET /v2/votes Current Protocol Voting

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

devs@mayaprotocol.com

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

xchainpy2_midgard_maya-2.16.0.tar.gz (95.0 kB view details)

Uploaded Source

Built Distribution

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

xchainpy2_midgard_maya-2.16.0-py3-none-any.whl (278.8 kB view details)

Uploaded Python 3

File details

Details for the file xchainpy2_midgard_maya-2.16.0.tar.gz.

File metadata

  • Download URL: xchainpy2_midgard_maya-2.16.0.tar.gz
  • Upload date:
  • Size: 95.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xchainpy2_midgard_maya-2.16.0.tar.gz
Algorithm Hash digest
SHA256 5f52c5dee11ab185bf02cbc8ceeb8c9ea8f088c1183a889f23cf6608b84be504
MD5 19e1b06597e3d14b88b359222f8148e0
BLAKE2b-256 70239ac35c0f9fa0c5633a9d714fbad4f2af64412188db6bb8f5f7aca0885fa1

See more details on using hashes here.

File details

Details for the file xchainpy2_midgard_maya-2.16.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xchainpy2_midgard_maya-2.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eed074ad1c82846f73c2e7a04f087f79a150c4cb74a5fb1005ce4331dc222445
MD5 24b1098194a8b18bed3a5eb3e1c1dfd2
BLAKE2b-256 4577774575ffc6fc81ea15b21f335b43b0fc9e04cd7d54274774ce6a8a1d4dc0

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