compass_api_sdk 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of compass_api_sdk might be problematic. Click here for more details.

Files changed (195) hide show
  1. {compass_api_sdk-0.2.0 → compass_api_sdk-0.3.0}/PKG-INFO +34 -33
  2. {compass_api_sdk-0.2.0 → compass_api_sdk-0.3.0}/README-PYPI.md +33 -32
  3. {compass_api_sdk-0.2.0 → compass_api_sdk-0.3.0}/pyproject.toml +4 -4
  4. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/_hooks/sdkhooks.py +1 -1
  5. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/_hooks/types.py +1 -1
  6. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/_version.py +3 -3
  7. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/aave_v3.py +27 -27
  8. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/aerodrome_slipstream.py +11 -11
  9. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/basesdk.py +3 -3
  10. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/errors/httpvalidationerror.py +3 -3
  11. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/httpclient.py +7 -37
  12. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/__init__.py +46 -25
  13. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_historical_transactionsop.py +8 -2
  14. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_liquidity_changeop.py +8 -12
  15. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_rateop.py +4 -12
  16. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_reserve_overviewop.py +4 -12
  17. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_token_priceop.py +4 -12
  18. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
  19. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aave_user_position_summaryop.py +4 -2
  20. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaveborrowparams.py +1 -1
  21. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaveborrowrequest.py +1 -1
  22. compass_api_sdk-0.3.0/src/compassapisdk/models/aavehistoricaltransactionsresponse.py +65 -0
  23. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
  24. compass_api_sdk-0.3.0/src/compassapisdk/models/aavelooprequest.py +87 -0
  25. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaverateresponse.py +1 -1
  26. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaverepayparams.py +1 -1
  27. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaverepayrequest.py +1 -1
  28. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
  29. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aavesupplyparams.py +1 -1
  30. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aavesupplyrequest.py +1 -1
  31. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aavetokenpriceresponse.py +1 -1
  32. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
  33. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
  34. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aavewithdrawparams.py +1 -1
  35. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aavewithdrawrequest.py +1 -1
  36. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
  37. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
  38. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
  39. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeposition.py +1 -1
  40. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
  41. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
  42. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
  43. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
  44. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
  45. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
  46. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
  47. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
  48. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
  49. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
  50. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
  51. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/allowanceinforesponse.py +1 -1
  52. compass_api_sdk-0.3.0/src/compassapisdk/models/borrow.py +67 -0
  53. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/chaininfo.py +1 -1
  54. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
  55. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
  56. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/ensnameinforesponse.py +1 -1
  57. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/generic_allowanceop.py +10 -12
  58. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/generic_ensop.py +4 -2
  59. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/generic_portfolioop.py +4 -2
  60. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/generic_supported_tokensop.py +2 -2
  61. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
  62. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/image.py +1 -1
  63. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/increaseallowanceanyparams.py +1 -1
  64. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/increaseallowanceparams.py +1 -1
  65. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/increaseallowancerequest.py +1 -1
  66. compass_api_sdk-0.3.0/src/compassapisdk/models/liquidationcall.py +64 -0
  67. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/marketstate.py +1 -1
  68. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morpho_market_positionop.py +11 -11
  69. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morpho_marketsop.py +11 -11
  70. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morpho_vault_positionop.py +11 -11
  71. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morpho_vaultsop.py +22 -18
  72. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphoborrowrequest.py +9 -6
  73. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
  74. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
  75. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphodepositrequest.py +9 -6
  76. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphogetmarketsresponse.py +1 -1
  77. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphogetvaultsresponse.py +1 -1
  78. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphomarket.py +1 -1
  79. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphorepayrequest.py +9 -6
  80. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphosetvaultallowancerequest.py +9 -6
  81. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphosupplycollateralrequest.py +9 -6
  82. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphovault.py +1 -1
  83. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphowithdrawcollateralrequest.py +9 -6
  84. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/morphowithdrawrequest.py +9 -6
  85. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/multicallaction.py +1 -1
  86. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/multicallauthorizationrequest.py +1 -1
  87. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/multicallauthorizationresponse.py +1 -1
  88. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/multicallexecuterequest.py +1 -1
  89. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/portfolio.py +1 -1
  90. compass_api_sdk-0.3.0/src/compassapisdk/models/redeemunderlying.py +48 -0
  91. compass_api_sdk-0.3.0/src/compassapisdk/models/repay.py +52 -0
  92. compass_api_sdk-0.3.0/src/compassapisdk/models/reserve.py +77 -0
  93. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/security.py +2 -2
  94. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/signedauthorization.py +1 -1
  95. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/sky_positionop.py +4 -2
  96. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/skybuyrequest.py +2 -2
  97. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/skycheckpositionresponse.py +1 -1
  98. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/skydepositrequest.py +2 -2
  99. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/skysellrequest.py +2 -2
  100. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/skywithdrawrequest.py +2 -2
  101. compass_api_sdk-0.3.0/src/compassapisdk/models/supply.py +54 -0
  102. compass_api_sdk-0.3.0/src/compassapisdk/models/swapborrowrate.py +56 -0
  103. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/token_addressop.py +4 -12
  104. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/token_balanceop.py +8 -2
  105. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/token_priceop.py +4 -12
  106. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokenaddressresponse.py +1 -1
  107. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokenbalance.py +1 -1
  108. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokenbalanceresponse.py +1 -1
  109. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokeninfo.py +1 -1
  110. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokenpriceresponse.py +1 -1
  111. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokentransfererc20params.py +1 -1
  112. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/tokentransferrequest.py +1 -1
  113. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
  114. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
  115. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswap_pool_priceop.py +8 -30
  116. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
  117. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
  118. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapbuyexactlyparams.py +7 -7
  119. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapbuyexactlyrequest.py +7 -7
  120. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
  121. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
  122. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
  123. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
  124. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
  125. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
  126. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
  127. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
  128. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
  129. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
  130. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
  131. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
  132. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
  133. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
  134. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
  135. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/unsignedtransaction.py +1 -1
  136. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/unwrapwethparams.py +1 -1
  137. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/unwrapwethrequest.py +1 -1
  138. compass_api_sdk-0.3.0/src/compassapisdk/models/usageascollateral.py +53 -0
  139. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/validationerror.py +1 -1
  140. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/vaultstate.py +1 -1
  141. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/weeklyapys.py +1 -1
  142. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/wrapethparams.py +1 -1
  143. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/wrapethrequest.py +1 -1
  144. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/morpho.py +79 -63
  145. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/sdk.py +11 -11
  146. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/sdkconfiguration.py +2 -2
  147. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/sky.py +5 -5
  148. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/token_sdk.py +11 -11
  149. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/transaction_batching.py +287 -3
  150. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/uniswap_v3.py +39 -39
  151. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/universal.py +15 -15
  152. compass_api_sdk-0.2.0/src/compass_api_sdk/_hooks/registration.py +0 -13
  153. compass_api_sdk-0.2.0/src/compass_api_sdk/models/aavehistoricaltransactionbase.py +0 -113
  154. compass_api_sdk-0.2.0/src/compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -31
  155. compass_api_sdk-0.2.0/src/compass_api_sdk/models/action.py +0 -14
  156. compass_api_sdk-0.2.0/src/compass_api_sdk/models/borrow.py +0 -33
  157. compass_api_sdk-0.2.0/src/compass_api_sdk/models/collateralreserve.py +0 -16
  158. compass_api_sdk-0.2.0/src/compass_api_sdk/models/liquidationcall.py +0 -37
  159. compass_api_sdk-0.2.0/src/compass_api_sdk/models/principalreserve.py +0 -16
  160. compass_api_sdk-0.2.0/src/compass_api_sdk/models/redeemunderlying.py +0 -21
  161. compass_api_sdk-0.2.0/src/compass_api_sdk/models/repay.py +0 -21
  162. compass_api_sdk-0.2.0/src/compass_api_sdk/models/reserve.py +0 -16
  163. compass_api_sdk-0.2.0/src/compass_api_sdk/models/supply.py +0 -21
  164. compass_api_sdk-0.2.0/src/compass_api_sdk/models/swapborrowrate.py +0 -27
  165. compass_api_sdk-0.2.0/src/compass_api_sdk/models/usageascollateral.py +0 -21
  166. {compass_api_sdk-0.2.0 → compass_api_sdk-0.3.0}/py.typed +0 -0
  167. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/__init__.py +0 -0
  168. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/_hooks/__init__.py +0 -0
  169. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/errors/__init__.py +0 -0
  170. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/errors/apierror.py +0 -0
  171. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/chain.py +0 -0
  172. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/contractname.py +0 -0
  173. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/feeenum.py +0 -0
  174. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/interestratemode.py +0 -0
  175. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/multicallactiontype.py +0 -0
  176. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/models/token_enum.py +0 -0
  177. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/py.typed +0 -0
  178. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/types/__init__.py +0 -0
  179. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/types/basemodel.py +0 -0
  180. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/__init__.py +0 -0
  181. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/annotations.py +0 -0
  182. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/datetimes.py +0 -0
  183. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/enums.py +0 -0
  184. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/eventstreaming.py +0 -0
  185. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/forms.py +0 -0
  186. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/headers.py +0 -0
  187. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/logger.py +0 -0
  188. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/metadata.py +0 -0
  189. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/queryparams.py +0 -0
  190. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/requestbodies.py +0 -0
  191. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/retries.py +0 -0
  192. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/security.py +0 -0
  193. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/serializers.py +0 -0
  194. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/url.py +0 -0
  195. {compass_api_sdk-0.2.0/src/compass_api_sdk → compass_api_sdk-0.3.0/src/compassapisdk}/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: compass_api_sdk
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Compass API Python SDK
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9.2
@@ -97,7 +97,7 @@ It's also possible to write a standalone Python script without needing to set up
97
97
  # ]
98
98
  # ///
99
99
 
100
- from compass_api_sdk import CompassAPISDK
100
+ from compassapisdk import CompassAPISDK
101
101
 
102
102
  sdk = CompassAPISDK(
103
103
  # SDK arguments
@@ -127,14 +127,14 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
127
127
 
128
128
  ```python
129
129
  # Synchronous Example
130
- from compass_api_sdk import CompassAPISDK, models
130
+ from compassapisdk import CompassAPISDK, models
131
131
 
132
132
 
133
133
  with CompassAPISDK(
134
134
  api_key_auth="<YOUR_API_KEY_HERE>",
135
- ) as cas_client:
135
+ ) as compass_api_sdk:
136
136
 
137
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
137
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
138
138
 
139
139
  # Handle response
140
140
  print(res)
@@ -146,15 +146,15 @@ The same SDK client can also be used to make asychronous requests by importing a
146
146
  ```python
147
147
  # Asynchronous Example
148
148
  import asyncio
149
- from compass_api_sdk import CompassAPISDK, models
149
+ from compassapisdk import CompassAPISDK, models
150
150
 
151
151
  async def main():
152
152
 
153
153
  async with CompassAPISDK(
154
154
  api_key_auth="<YOUR_API_KEY_HERE>",
155
- ) as cas_client:
155
+ ) as compass_api_sdk:
156
156
 
157
- res = await cas_client.aave_v3.reserve_overview_async(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
157
+ res = await compass_api_sdk.aave_v3.reserve_overview_async(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
158
158
 
159
159
  # Handle response
160
160
  print(res)
@@ -176,14 +176,14 @@ This SDK supports the following security scheme globally:
176
176
 
177
177
  To authenticate with the API the `api_key_auth` parameter must be set when initializing the SDK client instance. For example:
178
178
  ```python
179
- from compass_api_sdk import CompassAPISDK, models
179
+ from compassapisdk import CompassAPISDK, models
180
180
 
181
181
 
182
182
  with CompassAPISDK(
183
183
  api_key_auth="<YOUR_API_KEY_HERE>",
184
- ) as cas_client:
184
+ ) as compass_api_sdk:
185
185
 
186
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
186
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
187
187
 
188
188
  # Handle response
189
189
  print(res)
@@ -255,6 +255,7 @@ with CompassAPISDK(
255
255
 
256
256
  * [authorization](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#authorization) - Get EIP-7702 Authorization
257
257
  * [execute](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#execute) - Execute Tx Batching
258
+ * [aave_loop](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#aave_loop) - Execute Aave Loop Strategy
258
259
 
259
260
  ### [uniswap_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md)
260
261
 
@@ -290,15 +291,15 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
290
291
 
291
292
  To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
292
293
  ```python
293
- from compass_api_sdk import CompassAPISDK, models
294
- from compass_api_sdk.utils import BackoffStrategy, RetryConfig
294
+ from compassapisdk import CompassAPISDK, models
295
+ from compassapisdk.utils import BackoffStrategy, RetryConfig
295
296
 
296
297
 
297
298
  with CompassAPISDK(
298
299
  api_key_auth="<YOUR_API_KEY_HERE>",
299
- ) as cas_client:
300
+ ) as compass_api_sdk:
300
301
 
301
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC,
302
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC,
302
303
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
303
304
 
304
305
  # Handle response
@@ -308,16 +309,16 @@ with CompassAPISDK(
308
309
 
309
310
  If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
310
311
  ```python
311
- from compass_api_sdk import CompassAPISDK, models
312
- from compass_api_sdk.utils import BackoffStrategy, RetryConfig
312
+ from compassapisdk import CompassAPISDK, models
313
+ from compassapisdk.utils import BackoffStrategy, RetryConfig
313
314
 
314
315
 
315
316
  with CompassAPISDK(
316
317
  retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
317
318
  api_key_auth="<YOUR_API_KEY_HERE>",
318
- ) as cas_client:
319
+ ) as compass_api_sdk:
319
320
 
320
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
321
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
321
322
 
322
323
  # Handle response
323
324
  print(res)
@@ -349,16 +350,16 @@ When custom error responses are specified for an operation, the SDK may also rai
349
350
  ### Example
350
351
 
351
352
  ```python
352
- from compass_api_sdk import CompassAPISDK, errors, models
353
+ from compassapisdk import CompassAPISDK, errors, models
353
354
 
354
355
 
355
356
  with CompassAPISDK(
356
357
  api_key_auth="<YOUR_API_KEY_HERE>",
357
- ) as cas_client:
358
+ ) as compass_api_sdk:
358
359
  res = None
359
360
  try:
360
361
 
361
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
362
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
362
363
 
363
364
  # Handle response
364
365
  print(res)
@@ -379,15 +380,15 @@ with CompassAPISDK(
379
380
 
380
381
  The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
381
382
  ```python
382
- from compass_api_sdk import CompassAPISDK, models
383
+ from compassapisdk import CompassAPISDK, models
383
384
 
384
385
 
385
386
  with CompassAPISDK(
386
387
  server_url="https://api.compasslabs.ai",
387
388
  api_key_auth="<YOUR_API_KEY_HERE>",
388
- ) as cas_client:
389
+ ) as compass_api_sdk:
389
390
 
390
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
391
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
391
392
 
392
393
  # Handle response
393
394
  print(res)
@@ -404,7 +405,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu
404
405
 
405
406
  For example, you could specify a header for every request that this sdk makes as follows:
406
407
  ```python
407
- from compass_api_sdk import CompassAPISDK
408
+ from compassapisdk import CompassAPISDK
408
409
  import httpx
409
410
 
410
411
  http_client = httpx.Client(headers={"x-custom-header": "someValue"})
@@ -413,8 +414,8 @@ s = CompassAPISDK(client=http_client)
413
414
 
414
415
  or you could wrap the client with your own custom logic:
415
416
  ```python
416
- from compass_api_sdk import CompassAPISDK
417
- from compass_api_sdk.httpclient import AsyncHttpClient
417
+ from compassapisdk import CompassAPISDK
418
+ from compassapisdk.httpclient import AsyncHttpClient
418
419
  import httpx
419
420
 
420
421
  class CustomClient(AsyncHttpClient):
@@ -484,12 +485,12 @@ The `CompassAPISDK` class implements the context manager protocol and registers
484
485
  [context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers
485
486
 
486
487
  ```python
487
- from compass_api_sdk import CompassAPISDK
488
+ from compassapisdk import CompassAPISDK
488
489
  def main():
489
490
 
490
491
  with CompassAPISDK(
491
492
  api_key_auth="<YOUR_API_KEY_HERE>",
492
- ) as cas_client:
493
+ ) as compass_api_sdk:
493
494
  # Rest of application here...
494
495
 
495
496
 
@@ -498,7 +499,7 @@ async def amain():
498
499
 
499
500
  async with CompassAPISDK(
500
501
  api_key_auth="<YOUR_API_KEY_HERE>",
501
- ) as cas_client:
502
+ ) as compass_api_sdk:
502
503
  # Rest of application here...
503
504
  ```
504
505
  <!-- End Resource Management [resource-management] -->
@@ -510,11 +511,11 @@ You can setup your SDK to emit debug logs for SDK requests and responses.
510
511
 
511
512
  You can pass your own logger class directly into your SDK.
512
513
  ```python
513
- from compass_api_sdk import CompassAPISDK
514
+ from compassapisdk import CompassAPISDK
514
515
  import logging
515
516
 
516
517
  logging.basicConfig(level=logging.DEBUG)
517
- s = CompassAPISDK(debug_logger=logging.getLogger("compass_api_sdk"))
518
+ s = CompassAPISDK(debug_logger=logging.getLogger("compassapisdk"))
518
519
  ```
519
520
  <!-- End Debugging [debug] -->
520
521
 
@@ -81,7 +81,7 @@ It's also possible to write a standalone Python script without needing to set up
81
81
  # ]
82
82
  # ///
83
83
 
84
- from compass_api_sdk import CompassAPISDK
84
+ from compassapisdk import CompassAPISDK
85
85
 
86
86
  sdk = CompassAPISDK(
87
87
  # SDK arguments
@@ -111,14 +111,14 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
111
111
 
112
112
  ```python
113
113
  # Synchronous Example
114
- from compass_api_sdk import CompassAPISDK, models
114
+ from compassapisdk import CompassAPISDK, models
115
115
 
116
116
 
117
117
  with CompassAPISDK(
118
118
  api_key_auth="<YOUR_API_KEY_HERE>",
119
- ) as cas_client:
119
+ ) as compass_api_sdk:
120
120
 
121
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
121
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
122
122
 
123
123
  # Handle response
124
124
  print(res)
@@ -130,15 +130,15 @@ The same SDK client can also be used to make asychronous requests by importing a
130
130
  ```python
131
131
  # Asynchronous Example
132
132
  import asyncio
133
- from compass_api_sdk import CompassAPISDK, models
133
+ from compassapisdk import CompassAPISDK, models
134
134
 
135
135
  async def main():
136
136
 
137
137
  async with CompassAPISDK(
138
138
  api_key_auth="<YOUR_API_KEY_HERE>",
139
- ) as cas_client:
139
+ ) as compass_api_sdk:
140
140
 
141
- res = await cas_client.aave_v3.reserve_overview_async(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
141
+ res = await compass_api_sdk.aave_v3.reserve_overview_async(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
142
142
 
143
143
  # Handle response
144
144
  print(res)
@@ -160,14 +160,14 @@ This SDK supports the following security scheme globally:
160
160
 
161
161
  To authenticate with the API the `api_key_auth` parameter must be set when initializing the SDK client instance. For example:
162
162
  ```python
163
- from compass_api_sdk import CompassAPISDK, models
163
+ from compassapisdk import CompassAPISDK, models
164
164
 
165
165
 
166
166
  with CompassAPISDK(
167
167
  api_key_auth="<YOUR_API_KEY_HERE>",
168
- ) as cas_client:
168
+ ) as compass_api_sdk:
169
169
 
170
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
170
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
171
171
 
172
172
  # Handle response
173
173
  print(res)
@@ -239,6 +239,7 @@ with CompassAPISDK(
239
239
 
240
240
  * [authorization](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#authorization) - Get EIP-7702 Authorization
241
241
  * [execute](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#execute) - Execute Tx Batching
242
+ * [aave_loop](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#aave_loop) - Execute Aave Loop Strategy
242
243
 
243
244
  ### [uniswap_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md)
244
245
 
@@ -274,15 +275,15 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
274
275
 
275
276
  To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
276
277
  ```python
277
- from compass_api_sdk import CompassAPISDK, models
278
- from compass_api_sdk.utils import BackoffStrategy, RetryConfig
278
+ from compassapisdk import CompassAPISDK, models
279
+ from compassapisdk.utils import BackoffStrategy, RetryConfig
279
280
 
280
281
 
281
282
  with CompassAPISDK(
282
283
  api_key_auth="<YOUR_API_KEY_HERE>",
283
- ) as cas_client:
284
+ ) as compass_api_sdk:
284
285
 
285
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC,
286
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC,
286
287
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
287
288
 
288
289
  # Handle response
@@ -292,16 +293,16 @@ with CompassAPISDK(
292
293
 
293
294
  If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
294
295
  ```python
295
- from compass_api_sdk import CompassAPISDK, models
296
- from compass_api_sdk.utils import BackoffStrategy, RetryConfig
296
+ from compassapisdk import CompassAPISDK, models
297
+ from compassapisdk.utils import BackoffStrategy, RetryConfig
297
298
 
298
299
 
299
300
  with CompassAPISDK(
300
301
  retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
301
302
  api_key_auth="<YOUR_API_KEY_HERE>",
302
- ) as cas_client:
303
+ ) as compass_api_sdk:
303
304
 
304
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
305
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
305
306
 
306
307
  # Handle response
307
308
  print(res)
@@ -333,16 +334,16 @@ When custom error responses are specified for an operation, the SDK may also rai
333
334
  ### Example
334
335
 
335
336
  ```python
336
- from compass_api_sdk import CompassAPISDK, errors, models
337
+ from compassapisdk import CompassAPISDK, errors, models
337
338
 
338
339
 
339
340
  with CompassAPISDK(
340
341
  api_key_auth="<YOUR_API_KEY_HERE>",
341
- ) as cas_client:
342
+ ) as compass_api_sdk:
342
343
  res = None
343
344
  try:
344
345
 
345
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
346
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
346
347
 
347
348
  # Handle response
348
349
  print(res)
@@ -363,15 +364,15 @@ with CompassAPISDK(
363
364
 
364
365
  The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
365
366
  ```python
366
- from compass_api_sdk import CompassAPISDK, models
367
+ from compassapisdk import CompassAPISDK, models
367
368
 
368
369
 
369
370
  with CompassAPISDK(
370
371
  server_url="https://api.compasslabs.ai",
371
372
  api_key_auth="<YOUR_API_KEY_HERE>",
372
- ) as cas_client:
373
+ ) as compass_api_sdk:
373
374
 
374
- res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
375
+ res = compass_api_sdk.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
375
376
 
376
377
  # Handle response
377
378
  print(res)
@@ -388,7 +389,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu
388
389
 
389
390
  For example, you could specify a header for every request that this sdk makes as follows:
390
391
  ```python
391
- from compass_api_sdk import CompassAPISDK
392
+ from compassapisdk import CompassAPISDK
392
393
  import httpx
393
394
 
394
395
  http_client = httpx.Client(headers={"x-custom-header": "someValue"})
@@ -397,8 +398,8 @@ s = CompassAPISDK(client=http_client)
397
398
 
398
399
  or you could wrap the client with your own custom logic:
399
400
  ```python
400
- from compass_api_sdk import CompassAPISDK
401
- from compass_api_sdk.httpclient import AsyncHttpClient
401
+ from compassapisdk import CompassAPISDK
402
+ from compassapisdk.httpclient import AsyncHttpClient
402
403
  import httpx
403
404
 
404
405
  class CustomClient(AsyncHttpClient):
@@ -468,12 +469,12 @@ The `CompassAPISDK` class implements the context manager protocol and registers
468
469
  [context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers
469
470
 
470
471
  ```python
471
- from compass_api_sdk import CompassAPISDK
472
+ from compassapisdk import CompassAPISDK
472
473
  def main():
473
474
 
474
475
  with CompassAPISDK(
475
476
  api_key_auth="<YOUR_API_KEY_HERE>",
476
- ) as cas_client:
477
+ ) as compass_api_sdk:
477
478
  # Rest of application here...
478
479
 
479
480
 
@@ -482,7 +483,7 @@ async def amain():
482
483
 
483
484
  async with CompassAPISDK(
484
485
  api_key_auth="<YOUR_API_KEY_HERE>",
485
- ) as cas_client:
486
+ ) as compass_api_sdk:
486
487
  # Rest of application here...
487
488
  ```
488
489
  <!-- End Resource Management [resource-management] -->
@@ -494,11 +495,11 @@ You can setup your SDK to emit debug logs for SDK requests and responses.
494
495
 
495
496
  You can pass your own logger class directly into your SDK.
496
497
  ```python
497
- from compass_api_sdk import CompassAPISDK
498
+ from compassapisdk import CompassAPISDK
498
499
  import logging
499
500
 
500
501
  logging.basicConfig(level=logging.DEBUG)
501
- s = CompassAPISDK(debug_logger=logging.getLogger("compass_api_sdk"))
502
+ s = CompassAPISDK(debug_logger=logging.getLogger("compassapisdk"))
502
503
  ```
503
504
  <!-- End Debugging [debug] -->
504
505
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "compass_api_sdk"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "Compass API Python SDK"
5
5
  authors = [{ name = "royalnine" },]
6
6
  readme = "README-PYPI.md"
@@ -13,12 +13,12 @@ dependencies = [
13
13
  [tool.poetry]
14
14
  repository = "https://github.com/CompassLabs/mono.git"
15
15
  packages = [
16
- { include = "compass_api_sdk", from = "src" }
16
+ { include = "compassapisdk", from = "src" }
17
17
  ]
18
- include = ["py.typed", "src/compass_api_sdk/py.typed"]
18
+ include = ["py.typed", "src/compassapisdk/py.typed"]
19
19
 
20
20
  [tool.setuptools.package-data]
21
- "*" = ["py.typed", "src/compass_api_sdk/py.typed"]
21
+ "*" = ["py.typed", "src/compassapisdk/py.typed"]
22
22
 
23
23
  [virtualenvs]
24
24
  in-project = true
@@ -12,7 +12,7 @@ from .types import (
12
12
  Hooks,
13
13
  )
14
14
  from typing import List, Optional, Tuple
15
- from compass_api_sdk.httpclient import HttpClient
15
+ from compassapisdk.httpclient import HttpClient
16
16
 
17
17
 
18
18
  class SDKHooks(Hooks):
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from abc import ABC, abstractmethod
4
- from compass_api_sdk.httpclient import HttpClient
4
+ from compassapisdk.httpclient import HttpClient
5
5
  import httpx
6
6
  from typing import Any, Callable, List, Optional, Tuple, Union
7
7
 
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "compass_api_sdk"
6
- __version__: str = "0.2.0"
6
+ __version__: str = "0.3.0"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
- __gen_version__: str = "2.599.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.2.0 2.599.0 0.0.1 compass_api_sdk"
8
+ __gen_version__: str = "2.603.1"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.0 2.603.1 0.0.1 compass_api_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -1,9 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from .basesdk import BaseSDK
4
- from compass_api_sdk import errors, models, utils
5
- from compass_api_sdk._hooks import HookContext
6
- from compass_api_sdk.types import OptionalNullable, UNSET
4
+ from compassapisdk import errors, models, utils
5
+ from compassapisdk._hooks import HookContext
6
+ from compassapisdk.types import OptionalNullable, UNSET
7
7
  from typing import Any, Mapping, Optional, Union
8
8
 
9
9
 
@@ -28,7 +28,7 @@ class AaveV3(BaseSDK):
28
28
  See below for more info:
29
29
 
30
30
  :param chain: The chain to use.
31
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
31
+ :param token: The symbol of the asset..
32
32
  :param retries: Override the default retry configuration for this method
33
33
  :param server_url: Override the default server URL for this method
34
34
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -135,7 +135,7 @@ class AaveV3(BaseSDK):
135
135
  See below for more info:
136
136
 
137
137
  :param chain: The chain to use.
138
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
138
+ :param token: The symbol of the asset..
139
139
  :param retries: Override the default retry configuration for this method
140
140
  :param server_url: Override the default server URL for this method
141
141
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -250,7 +250,7 @@ class AaveV3(BaseSDK):
250
250
  For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
251
251
 
252
252
  :param chain: The chain to use.
253
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
253
+ :param token: The symbol of the asset to fetch the users' position on..
254
254
  :param retries: Override the default retry configuration for this method
255
255
  :param server_url: Override the default server URL for this method
256
256
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -363,7 +363,7 @@ class AaveV3(BaseSDK):
363
363
  For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
364
364
 
365
365
  :param chain: The chain to use.
366
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
366
+ :param token: The symbol of the asset to fetch the users' position on..
367
367
  :param retries: Override the default retry configuration for this method
368
368
  :param server_url: Override the default server URL for this method
369
369
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -470,7 +470,7 @@ class AaveV3(BaseSDK):
470
470
  Aave.
471
471
 
472
472
  :param chain: The chain to use.
473
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
473
+ :param token: The symbol of the asset whose price you want..
474
474
  :param retries: Override the default retry configuration for this method
475
475
  :param server_url: Override the default server URL for this method
476
476
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -577,7 +577,7 @@ class AaveV3(BaseSDK):
577
577
  Aave.
578
578
 
579
579
  :param chain: The chain to use.
580
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
580
+ :param token: The symbol of the asset whose price you want..
581
581
  :param retries: Override the default retry configuration for this method
582
582
  :param server_url: Override the default server URL for this method
583
583
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -689,9 +689,9 @@ class AaveV3(BaseSDK):
689
689
  true if the liquidity index is negative.
690
690
 
691
691
  :param chain: The chain to use.
692
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
693
- :param start_block:
694
- :param end_block:
692
+ :param token: The symbol of the asset to get liquidity change for..
693
+ :param start_block: The start block to calculate liquidity change from.
694
+ :param end_block: The end block to calculate liquidity change to.
695
695
  :param retries: Override the default retry configuration for this method
696
696
  :param server_url: Override the default server URL for this method
697
697
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -807,9 +807,9 @@ class AaveV3(BaseSDK):
807
807
  true if the liquidity index is negative.
808
808
 
809
809
  :param chain: The chain to use.
810
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
811
- :param start_block:
812
- :param end_block:
810
+ :param token: The symbol of the asset to get liquidity change for..
811
+ :param start_block: The start block to calculate liquidity change from.
812
+ :param end_block: The end block to calculate liquidity change to.
813
813
  :param retries: Override the default retry configuration for this method
814
814
  :param server_url: Override the default server URL for this method
815
815
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -920,7 +920,7 @@ class AaveV3(BaseSDK):
920
920
  a holistic view of their financial standing within the AAVE ecosystem.
921
921
 
922
922
  :param chain: The chain to use.
923
- :param user:
923
+ :param user: The user to get position summary for.
924
924
  :param retries: Override the default retry configuration for this method
925
925
  :param server_url: Override the default server URL for this method
926
926
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1029,7 +1029,7 @@ class AaveV3(BaseSDK):
1029
1029
  a holistic view of their financial standing within the AAVE ecosystem.
1030
1030
 
1031
1031
  :param chain: The chain to use.
1032
- :param user:
1032
+ :param user: The user to get position summary for.
1033
1033
  :param retries: Override the default retry configuration for this method
1034
1034
  :param server_url: Override the default server URL for this method
1035
1035
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1140,8 +1140,8 @@ class AaveV3(BaseSDK):
1140
1140
  their financial standing within the AAVE ecosystem.
1141
1141
 
1142
1142
  :param chain: The chain to use.
1143
- :param user:
1144
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
1143
+ :param user: The user to fetch the token-specific position of.
1144
+ :param token: The symbol of the asset to fetch the user's position on..
1145
1145
  :param retries: Override the default retry configuration for this method
1146
1146
  :param server_url: Override the default server URL for this method
1147
1147
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1253,8 +1253,8 @@ class AaveV3(BaseSDK):
1253
1253
  their financial standing within the AAVE ecosystem.
1254
1254
 
1255
1255
  :param chain: The chain to use.
1256
- :param user:
1257
- :param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
1256
+ :param user: The user to fetch the token-specific position of.
1257
+ :param token: The symbol of the asset to fetch the user's position on..
1258
1258
  :param retries: Override the default retry configuration for this method
1259
1259
  :param server_url: Override the default server URL for this method
1260
1260
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1364,9 +1364,9 @@ class AaveV3(BaseSDK):
1364
1364
  activity within the AAVE protocol.
1365
1365
 
1366
1366
  :param chain: The chain to use.
1367
- :param user_address:
1368
- :param offset:
1369
- :param limit:
1367
+ :param user_address: The address of the user to get historical transactions for.
1368
+ :param offset: The offset of the first item to return.
1369
+ :param limit: The number of items to return.
1370
1370
  :param retries: Override the default retry configuration for this method
1371
1371
  :param server_url: Override the default server URL for this method
1372
1372
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1477,9 +1477,9 @@ class AaveV3(BaseSDK):
1477
1477
  activity within the AAVE protocol.
1478
1478
 
1479
1479
  :param chain: The chain to use.
1480
- :param user_address:
1481
- :param offset:
1482
- :param limit:
1480
+ :param user_address: The address of the user to get historical transactions for.
1481
+ :param offset: The offset of the first item to return.
1482
+ :param limit: The number of items to return.
1483
1483
  :param retries: Override the default retry configuration for this method
1484
1484
  :param server_url: Override the default server URL for this method
1485
1485
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds