Package: xchainpy2-midgard
xchainpy2-midgardThe Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with THORChain protocol, users should query THORNode directly.This Python package is automatically generated by theSwagger Codegenproject:API version: 2.18.2Package version: 2.18.2Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegenRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on Github, you can install directly from Githubpipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importxchainpy2_midgardSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importxchainpy2_midgardGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportxchainpy2_midgardfromxchainpy2_midgard.restimportApiExceptionfrompprintimportpprint# create an instance of the API classapi_instance=xchainpy2_midgard.SpecificationApi(xchainpy2_midgard.ApiClient(configuration))try:# Documentationapi_instance.get_docs()exceptApiExceptionase:print("Exception when calling SpecificationApi->get_docs:%s\n"%e)# create an instance of the API classapi_instance=xchainpy2_midgard.SpecificationApi(xchainpy2_midgard.ApiClient(configuration))try:# Swagger Fileapi_instance.get_swagger()exceptApiExceptionase:print("Exception when calling SpecificationApi->get_swagger:%s\n"%e)Documentation for API EndpointsAll URIs are relative to/ClassMethodHTTP requestDescriptionSpecificationApiget_docsGET/v2/docDocumentationSpecificationApiget_swaggerGET/v2/swagger.jsonSwagger FileDefaultApiget_actionsGET/v2/actionsActions ListDefaultApiget_balanceGET/v2/balance/{address}Current balance for an addressDefaultApiget_borrower_detailGET/v2/borrower/{address}Borrower DetailsDefaultApiget_borrowers_addressesGET/v2/borrowersBorrowers ListDefaultApiget_churnsGET/v2/churnsChurns ListDefaultApiget_depth_historyGET/v2/history/depths/{pool}Depth and Price HistoryDefaultApiget_earnings_historyGET/v2/history/earningsEarnings HistoryDefaultApiget_healthGET/v2/healthHealth InfoDefaultApiget_known_poolsGET/v2/knownpoolsKnown Pools ListDefaultApiget_liquidity_historyGET/v2/history/liquidity_changesLiquidity Changes HistoryDefaultApiget_member_detailGET/v2/member/{address}Member DetailsDefaultApiget_members_adressesGET/v2/membersMembers ListDefaultApiget_network_dataGET/v2/networkNetwork DataDefaultApiget_nodesGET/v2/nodesNodes ListDefaultApiget_poolGET/v2/pool/{asset}Details of a PoolDefaultApiget_pool_statsGET/v2/pool/{asset}/statsPool StatisticsDefaultApiget_poolsGET/v2/poolsPools ListDefaultApiget_saver_detailGET/v2/saver/{address}Saver DetailsDefaultApiget_savers_historyGET/v2/history/savers/{pool}Savers Units and Depth HistoryDefaultApiget_statsGET/v2/statsGlobal StatsDefaultApiget_swap_historyGET/v2/history/swapsSwaps HistoryDefaultApiget_thor_name_detailGET/v2/thorname/lookup/{name}THORName DetailsDefaultApiget_thor_names_by_addressGET/v2/thorname/rlookup/{address}Gives a list of THORNames by reverse lookupDefaultApiget_thor_names_owner_by_addressGET/v2/thorname/owner/{address}THORName ownerDefaultApiget_tvl_historyGET/v2/history/tvlTotal Value Locked HistoryDocumentation For ModelsActionActionMetaAddLiquidityMetadataBalanceBlockRewardsBondMetricsBorrowerDetailsBorrowerPoolBorrowersChurnItemChurnsCoinCoinsDepthHistoryDepthHistoryIntervalsDepthHistoryItemDepthHistoryItemPoolDepthHistoryMetaEarningsHistoryEarningsHistoryIntervalsEarningsHistoryItemEarningsHistoryItemPoolGenesisInfHealthHeightTSInlineResponse200KnownPoolsLiquidityHistoryLiquidityHistoryIntervalsLiquidityHistoryItemMemberDetailsMemberPoolMembersMetadataNetworkNetworkFeesNodeNodesPoolDetailPoolDetailsPoolStatsDetailRefundMetadataReverseTHORNamesSaverDetailsSaverPoolSaversHistorySaversHistoryIntervalsSaversHistoryItemSaversHistoryMetaStatsDataStreamingSwapMetaSwapHistorySwapHistoryIntervalsSwapHistoryItemSwapMetadataTHORNameDetailsTHORNameEntryTVLHistoryTVLHistoryIntervalsTVLHistoryItemTransactionWithdrawMetadataDocumentation For AuthorizationAll endpoints do not require authorization.Authordevs@thorchain.org