compass_api_sdk 0.9.41__py3-none-any.whl → 0.9.43__py3-none-any.whl
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.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +53 -64
- compass_api_sdk/aerodrome_slipstream.py +29 -28
- compass_api_sdk/erc_4626_vaults.py +13 -12
- compass_api_sdk/models/__init__.py +40 -24
- compass_api_sdk/models/compass_api_backend_models_pendle_read_response_market_userposition.py +82 -0
- compass_api_sdk/models/{userposition.py → compass_api_backend_models_vaults_read_response_vault_userposition.py} +2 -2
- compass_api_sdk/models/pendle_marketop.py +10 -2
- compass_api_sdk/models/pendlegetmarketresponse.py +52 -2
- compass_api_sdk/models/uniswapbuyexactlyparams.py +32 -24
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +32 -24
- compass_api_sdk/models/vaultgetvaultresponse.py +10 -3
- compass_api_sdk/morpho.py +49 -60
- compass_api_sdk/pendle.py +71 -268
- compass_api_sdk/sky.py +21 -24
- compass_api_sdk/smart_account.py +5 -4
- compass_api_sdk/token_sdk.py +17 -16
- compass_api_sdk/transaction_bundler.py +13 -12
- compass_api_sdk/uniswap_v3.py +61 -60
- compass_api_sdk/universal.py +33 -32
- compass_api_sdk/utils/__init__.py +0 -3
- compass_api_sdk/utils/serializers.py +1 -18
- compass_api_sdk/utils/unmarshal_json_response.py +24 -0
- {compass_api_sdk-0.9.41.dist-info → compass_api_sdk-0.9.43.dist-info}/METADATA +2 -3
- {compass_api_sdk-0.9.41.dist-info → compass_api_sdk-0.9.43.dist-info}/RECORD +26 -26
- compass_api_sdk/models/pendle_positionop.py +0 -87
- compass_api_sdk/models/pendlegetuserpositionresponse.py +0 -56
- {compass_api_sdk-0.9.41.dist-info → compass_api_sdk-0.9.43.dist-info}/WHEEL +0 -0
|
@@ -2,11 +2,11 @@ compass_api_sdk/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,4
|
|
|
2
2
|
compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
|
|
3
3
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
4
4
|
compass_api_sdk/_hooks/types.py,sha256=4qXm6dEntJOC2QeOdTklcc53oFzTU3HBb1xGdZ-kBXY,3059
|
|
5
|
-
compass_api_sdk/_version.py,sha256=
|
|
6
|
-
compass_api_sdk/aave_v3.py,sha256=
|
|
7
|
-
compass_api_sdk/aerodrome_slipstream.py,sha256=
|
|
5
|
+
compass_api_sdk/_version.py,sha256=f-jWaxBtLSPtRZQwHy_XC_4C1FyWt33muRJq8anDQ-E,474
|
|
6
|
+
compass_api_sdk/aave_v3.py,sha256=OhQmjeWl2emRwT0g1D9RUdPn5B3NsO2fdwzszPs3Uug,116614
|
|
7
|
+
compass_api_sdk/aerodrome_slipstream.py,sha256=l57AwIZqQvYpeZp9ZJxfhHXqPD5XRGSH0d5ETV3YLww,78289
|
|
8
8
|
compass_api_sdk/basesdk.py,sha256=PQNcMD7BiLruZwOuU2TeWIE_zQ0iO--XYUFmIDr5zX0,11844
|
|
9
|
-
compass_api_sdk/erc_4626_vaults.py,sha256=
|
|
9
|
+
compass_api_sdk/erc_4626_vaults.py,sha256=h2lIPJYbyj6eBZQ6ww9FiU-ZYwLZpcgN3P0nieQtptc,26383
|
|
10
10
|
compass_api_sdk/errors/__init__.py,sha256=UZYQ_CPi1cQkYcHe6n00nfKPIRwbmcufTY-FmMJGmk8,1693
|
|
11
11
|
compass_api_sdk/errors/apierror.py,sha256=y1lf-8zwQhv1JGntxj03ViMUyHN_Uewe0oZoH8MhwSM,1235
|
|
12
12
|
compass_api_sdk/errors/compassapierror.py,sha256=VqVzBWmwoS3OvoKbgBNh2WFFhrM3K5Kbz_5q4bupD7o,717
|
|
@@ -14,7 +14,7 @@ compass_api_sdk/errors/httpvalidationerror.py,sha256=ebdzfILwY0BltW3MqxCpHipluRS
|
|
|
14
14
|
compass_api_sdk/errors/no_response_error.py,sha256=FQG44Lq6uF7uUlzbUYfM3dJon6sbqXzJ0Ri6YrDdsEs,380
|
|
15
15
|
compass_api_sdk/errors/responsevalidationerror.py,sha256=baMAkfmUhcPt_cxzyOCBCGBOzlXAeTHwcn5AUCsAgOw,702
|
|
16
16
|
compass_api_sdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
17
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
17
|
+
compass_api_sdk/models/__init__.py,sha256=DVaSsIgNTFT8fqfmhR-fkx1WaKf_Bv4si2LNBj08hcg,119751
|
|
18
18
|
compass_api_sdk/models/aave_avg_rateop.py,sha256=Qn7IkBwZv5zY_L15V_LONkANzQPTbtmK2Wwhc2iqYz8,3718
|
|
19
19
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=oWOjaRhNyjddZPqr5RfhNYf6V4Ye4gOQ0BDIXoqZGSs,1785
|
|
20
20
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=o9G4dD2foyhbunziTv_177Qr2AK37KTIQsQfvPxo5Fs,2785
|
|
@@ -76,8 +76,10 @@ compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_marke
|
|
|
76
76
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_marketstate.py,sha256=wour5BGvKGddpI_qfs7WHfDewE5-cLdRjq7L-QTAQLg,2133
|
|
77
77
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py,sha256=zlxZwigsUocOnYo2Q43JLDSiFL6w26r-jaqcy4Ds2NU,562
|
|
78
78
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py,sha256=WwlaoKcfHa18irpBwR95FIV5TD0_2jVN_hIqo1R55rE,796
|
|
79
|
+
compass_api_sdk/models/compass_api_backend_models_pendle_read_response_market_userposition.py,sha256=jkWdF9C7npeeiZPgBWaJt9Hd8Ft9Sn745ZNZct6R_-A,2749
|
|
79
80
|
compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_tokenbalance.py,sha256=dxEvdDEZmYokpmCAO3RXRQU81kR4Bmiv3eEqMKh0GTU,450
|
|
80
81
|
compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_asset.py,sha256=M5ShjhNBdQYc_D4FefCDjDc5hm3KV4u_fJ7ZKyTH-uk,478
|
|
82
|
+
compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py,sha256=SxtENOm04UiflzOyi09Gcrh3v0ibB3uWHAbI_bqlUdk,436
|
|
81
83
|
compass_api_sdk/models/details.py,sha256=3nlDe5Po20HFWWc31iX-6wOfMdveE76JpNf-Kp9AsuQ,1212
|
|
82
84
|
compass_api_sdk/models/ensnameinforesponse.py,sha256=p7y3TYD3lApa8hzHTCKDUEmSpmH2QmJAHG7wzef9rLk,626
|
|
83
85
|
compass_api_sdk/models/erc20data.py,sha256=Pn9h6Ts64VoV3bR5gpbMxTPb2Du8izsK5a6eFxQfRZU,394
|
|
@@ -124,9 +126,8 @@ compass_api_sdk/models/multicallauthorizationrequest.py,sha256=h5-2acLlhV9assgII
|
|
|
124
126
|
compass_api_sdk/models/multicallauthorizationresponse.py,sha256=3jjdz9Mz-tKjhBzZbVaJW51no58HSqcxfHJwuZsgnhg,914
|
|
125
127
|
compass_api_sdk/models/multicallexecuterequest.py,sha256=iVCfkarzlLYQrdo2sCRB9YJyJ-dayaf321j0Hh4Fit8,1095
|
|
126
128
|
compass_api_sdk/models/openposition.py,sha256=jd5t6ku3f7J0PA-1LmfWyrNYrQybGF68ebfVKgkSzdc,1013
|
|
127
|
-
compass_api_sdk/models/pendle_marketop.py,sha256=
|
|
129
|
+
compass_api_sdk/models/pendle_marketop.py,sha256=5Q0SA0lkY6H7RK7UV4PNNTe5in_jX6DxKPaw4rZGqHs,2989
|
|
128
130
|
compass_api_sdk/models/pendle_marketsop.py,sha256=LHFiQt07oujjdLItscPDEkOCh282rsc_Q2W0jYnkXXM,830
|
|
129
|
-
compass_api_sdk/models/pendle_positionop.py,sha256=UQi58V5JAeDqHeEXWeRgfqeD1zQoYgDaDFgT4aZXi8s,2754
|
|
130
131
|
compass_api_sdk/models/pendle_positionsop.py,sha256=TVqsZ_DuXi9Osl8vtETb33BrSc4tEMccLnqevU30avk,1134
|
|
131
132
|
compass_api_sdk/models/pendle_quoteop.py,sha256=924Xt5q0tkmB1thM5Y6wELh7EZ4y8uEFyfBoCj8F26o,3787
|
|
132
133
|
compass_api_sdk/models/pendleaddliquidityparams.py,sha256=03Jo5eLXbA-78187BU1LolAsE9pjKQ9VizwmlHYwkxM,2056
|
|
@@ -135,9 +136,8 @@ compass_api_sdk/models/pendlebuyptparams.py,sha256=Y_3zGoBomfP1EFK1Gl6DKAOv7C3vS
|
|
|
135
136
|
compass_api_sdk/models/pendlebuyptrequest.py,sha256=NQkaQ2HqjGeVx8yNwFz6a_r0ZrMmMo8AEf-zweChOkA,2209
|
|
136
137
|
compass_api_sdk/models/pendlebuyytparams.py,sha256=KNPS0zRlcr9R44jARza_nDoZNinHc4j34EuReii8JvI,1926
|
|
137
138
|
compass_api_sdk/models/pendlebuyytrequest.py,sha256=EzpfmTGzWLCuG2C6tFMeHXxdP5L7R6XzWEbMJDOy1Tk,2185
|
|
138
|
-
compass_api_sdk/models/pendlegetmarketresponse.py,sha256=
|
|
139
|
+
compass_api_sdk/models/pendlegetmarketresponse.py,sha256=66iWVY6l95X2mx0SKCimZr_39zrqZoUL28XHbOKHpnw,2509
|
|
139
140
|
compass_api_sdk/models/pendlegetquoteresponse.py,sha256=v-xQTnffKHix-tYuGnxCSiFU1HHs1cag492rB6B_1X4,591
|
|
140
|
-
compass_api_sdk/models/pendlegetuserpositionresponse.py,sha256=lGYK1LRI6osNYz5043uGO2aBYojDzXKK4cVnyvaFdmA,1913
|
|
141
141
|
compass_api_sdk/models/pendlelistmarketsresponse.py,sha256=-DlImGBzAP-yc0B1F9Cfer1ruFHLUEsRv2F1MQt2-hE,570
|
|
142
142
|
compass_api_sdk/models/pendlelistuserpositionsresponse.py,sha256=7QQ5xeGxlPo1mPrzR9LRwSlx7veUN3u2qnZDi6iVWj0,572
|
|
143
143
|
compass_api_sdk/models/pendlemarket.py,sha256=4eLXsYRw9c7CSFOsciOA4MCA57-1Su6B2vx4RoRBlew,918
|
|
@@ -187,8 +187,8 @@ compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py,sha256=-HW4PPi
|
|
|
187
187
|
compass_api_sdk/models/uniswap_pool_priceop.py,sha256=JTBQcsaeJSN_tELQW6iMBztsww84x8ORdJaQmLIRb5c,4115
|
|
188
188
|
compass_api_sdk/models/uniswap_quote_buy_exactlyop.py,sha256=bccb6R2Vont8p2uPI339D9tQ8gpuyTnXLT0odLXHHws,4914
|
|
189
189
|
compass_api_sdk/models/uniswap_quote_sell_exactlyop.py,sha256=xOsycQxu7rpp_s5TbYbOarQZnW3yDhRCvX3EBe1x28c,4938
|
|
190
|
-
compass_api_sdk/models/uniswapbuyexactlyparams.py,sha256=
|
|
191
|
-
compass_api_sdk/models/uniswapbuyexactlyrequest.py,sha256=
|
|
190
|
+
compass_api_sdk/models/uniswapbuyexactlyparams.py,sha256=xJLxM351q-hMtgeKYEgpsxFxKxKdXpZZy1fYMtd4Xrw,3156
|
|
191
|
+
compass_api_sdk/models/uniswapbuyexactlyrequest.py,sha256=NcCbCHw5MpBPd8j3U26toGculyoPagXKnEVmyw-qrP0,3555
|
|
192
192
|
compass_api_sdk/models/uniswapbuyquoteinforesponse.py,sha256=9vhkblgXbV_2wrAMZXv2iswxl7TxzlUMrMNLTUvCeeI,734
|
|
193
193
|
compass_api_sdk/models/uniswapcheckinrangeresponse.py,sha256=UoDUtm0AjXLnuPfL1odBsmrh6Z19EniwUTlUKTe5N7w,581
|
|
194
194
|
compass_api_sdk/models/uniswapincreaseliquidityprovisionparams.py,sha256=OovA3mUqYyybOulO1dGh4J_ebumd6VIL6GiT-md5m_Y,3837
|
|
@@ -210,12 +210,11 @@ compass_api_sdk/models/unwrapwethrequest.py,sha256=pt-eqvKWN6qir5bN6d9EWBZIDrXs_
|
|
|
210
210
|
compass_api_sdk/models/usageascollateral.py,sha256=hHBgh83BO9WA6u-9xzTvBlPOLoiYV1N21G6vDeo_b30,1561
|
|
211
211
|
compass_api_sdk/models/useroperation.py,sha256=oxm4nj0hIhGE821-MTBoQ6x3DrLOi1XbzVXJtrOpaLw,8850
|
|
212
212
|
compass_api_sdk/models/useroperationresponse.py,sha256=z0o0N-EC30XlrkFiR3vLO_EXbpXojUCJlWQxuOir5VM,671
|
|
213
|
-
compass_api_sdk/models/userposition.py,sha256=tmRq5o-tNWFQCZ-48bA4HCTJnVt_lt1DMM8cZShZOZE,344
|
|
214
213
|
compass_api_sdk/models/userstate.py,sha256=uwoWC0y2Bv5jHW-F2MInZx0RwMihH6WxcXmemr71sdk,1994
|
|
215
214
|
compass_api_sdk/models/validationerror.py,sha256=01WnpU7Tgin0B_poO97_hl6b5CNJ_9VGzpcmoeJs4GU,532
|
|
216
215
|
compass_api_sdk/models/vault.py,sha256=ttepBiKO4o7-C97oALWOYAcN7ALDXmBFBcbQV_nfwO4,1849
|
|
217
216
|
compass_api_sdk/models/vaultdepositrequest.py,sha256=GXYfXNlMmExOxjgabMDFjRS4kjHovuofGNz9DHO1TDQ,3136
|
|
218
|
-
compass_api_sdk/models/vaultgetvaultresponse.py,sha256=
|
|
217
|
+
compass_api_sdk/models/vaultgetvaultresponse.py,sha256=eIo-NdQ6C7DVFITjb1mimYL_akHA8MfmkovNroTEyG0,3164
|
|
219
218
|
compass_api_sdk/models/vaultposition.py,sha256=o_Nyjc7GB5lLi11yCO6cp8nZpIvJcZzGB1iL_oCJUA0,801
|
|
220
219
|
compass_api_sdk/models/vaults_vaultop.py,sha256=4LE8AgOUsfDBDNcupsAnhbY_s20oMTRsHRazsF-slAY,2989
|
|
221
220
|
compass_api_sdk/models/vaultwithdrawrequest.py,sha256=w4STTo4hqAZ6OtCgflHlaKquFCDWyTEa399tURyFgTo,2758
|
|
@@ -223,20 +222,20 @@ compass_api_sdk/models/weeklyapys.py,sha256=AaGjDD4NeGsZQBwdRW1G09Pmx17pLPe2oUA9
|
|
|
223
222
|
compass_api_sdk/models/wrapethparams.py,sha256=nw1fZiDrj5wZnI25Vmg0DcNI01k-uhot68lG1_H7xrY,1223
|
|
224
223
|
compass_api_sdk/models/wrapethrequest.py,sha256=pjo0BZtzdOZKuwgnc05LsCWO1A6ZAGLwFixLuXQNKDg,1476
|
|
225
224
|
compass_api_sdk/models/yieldrange.py,sha256=WEpZR24JddnCS1_13y2P1CdD0lBi6dPktysCNu3TUic,324
|
|
226
|
-
compass_api_sdk/morpho.py,sha256=
|
|
227
|
-
compass_api_sdk/pendle.py,sha256=
|
|
225
|
+
compass_api_sdk/morpho.py,sha256=RJ7uw5GswJmy65Imwq3i3svxjuhVpl5c3Q9bv9AY9jw,107770
|
|
226
|
+
compass_api_sdk/pendle.py,sha256=Eb4zJfmfU28fria3eeA_tA2xnKZjvmtTrTJpNrrhb98,93890
|
|
228
227
|
compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
229
228
|
compass_api_sdk/sdk.py,sha256=rQ3ANGf0BxHoZc9hCQvsxkNc9qOW3DbGAuOz_sy3o7g,7865
|
|
230
229
|
compass_api_sdk/sdkconfiguration.py,sha256=5nec4ViMLCsNWBd3DyEv8zWqU5Z77YZfzwX69jkdSnM,1607
|
|
231
|
-
compass_api_sdk/sky.py,sha256=
|
|
232
|
-
compass_api_sdk/smart_account.py,sha256=
|
|
233
|
-
compass_api_sdk/token_sdk.py,sha256=
|
|
234
|
-
compass_api_sdk/transaction_bundler.py,sha256=
|
|
230
|
+
compass_api_sdk/sky.py,sha256=lY4fOXFzRQpAHf-u33dUCDNPl_WzGviBErT_5ogzPkM,40307
|
|
231
|
+
compass_api_sdk/smart_account.py,sha256=H28RSfvyffnWNBOy7irXHsp4Xcmz-mBgKuJWlsQ6Rv4,8704
|
|
232
|
+
compass_api_sdk/token_sdk.py,sha256=cCzbVft0xGsABPCga56h7FvV0PglJO8okBjg5qyvYHU,31964
|
|
233
|
+
compass_api_sdk/transaction_bundler.py,sha256=6nij4Wf5g5fyE_DEY0tGr9VGUNvyjXRLqEfA1Y1FUNM,30278
|
|
235
234
|
compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
236
235
|
compass_api_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
237
|
-
compass_api_sdk/uniswap_v3.py,sha256=
|
|
238
|
-
compass_api_sdk/universal.py,sha256=
|
|
239
|
-
compass_api_sdk/utils/__init__.py,sha256=
|
|
236
|
+
compass_api_sdk/uniswap_v3.py,sha256=MVyv6u_nQFoMXUGv0M6TWTHYAtPuTZjdK3ZQv0NAJRU,101489
|
|
237
|
+
compass_api_sdk/universal.py,sha256=zdmsKmRxI9u3kv-kGXUXFY30ARz9Yp8yCYNl1bvjLxs,65113
|
|
238
|
+
compass_api_sdk/utils/__init__.py,sha256=811KKdkxMaWDfz2lMohUWqrR4JnIWxqeNQ1lRGQU4DM,5341
|
|
240
239
|
compass_api_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
241
240
|
compass_api_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
|
242
241
|
compass_api_sdk/utils/enums.py,sha256=REU6ydF8gsVL3xaeGX4sMNyiL3q5P9h29-f6Sa6luAE,2633
|
|
@@ -249,9 +248,10 @@ compass_api_sdk/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRl
|
|
|
249
248
|
compass_api_sdk/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
|
250
249
|
compass_api_sdk/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
|
251
250
|
compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFIdYBX0,5516
|
|
252
|
-
compass_api_sdk/utils/serializers.py,sha256=
|
|
251
|
+
compass_api_sdk/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE,5999
|
|
252
|
+
compass_api_sdk/utils/unmarshal_json_response.py,sha256=GI4Cw4JB6H2qNkqbOuBiUcxtEOJhRm2bz3qfer9KmoE,591
|
|
253
253
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
254
254
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
255
|
-
compass_api_sdk-0.9.
|
|
256
|
-
compass_api_sdk-0.9.
|
|
257
|
-
compass_api_sdk-0.9.
|
|
255
|
+
compass_api_sdk-0.9.43.dist-info/METADATA,sha256=enU8P34cbXGWfv1SMUolMfHjKgTcgIkQMFD71pVo8QM,28507
|
|
256
|
+
compass_api_sdk-0.9.43.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
257
|
+
compass_api_sdk-0.9.43.dist-info/RECORD,,
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import (
|
|
5
|
-
BaseModel,
|
|
6
|
-
Nullable,
|
|
7
|
-
OptionalNullable,
|
|
8
|
-
UNSET,
|
|
9
|
-
UNSET_SENTINEL,
|
|
10
|
-
)
|
|
11
|
-
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
|
-
from enum import Enum
|
|
13
|
-
from pydantic import model_serializer
|
|
14
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class PendlePositionChain(str, Enum):
|
|
18
|
-
r"""The chain to use."""
|
|
19
|
-
|
|
20
|
-
BASE_MAINNET = "base:mainnet"
|
|
21
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
22
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class PendlePositionRequestTypedDict(TypedDict):
|
|
26
|
-
chain: PendlePositionChain
|
|
27
|
-
r"""The chain to use."""
|
|
28
|
-
block: NotRequired[Nullable[int]]
|
|
29
|
-
r"""Optional block number (defaults to latest)."""
|
|
30
|
-
user_address: str
|
|
31
|
-
r"""The user address of the desired position."""
|
|
32
|
-
market_address: str
|
|
33
|
-
r"""The market address of the desired position."""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class PendlePositionRequest(BaseModel):
|
|
37
|
-
chain: Annotated[
|
|
38
|
-
PendlePositionChain,
|
|
39
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
-
] = PendlePositionChain.ARBITRUM_MAINNET
|
|
41
|
-
r"""The chain to use."""
|
|
42
|
-
|
|
43
|
-
block: Annotated[
|
|
44
|
-
OptionalNullable[int],
|
|
45
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
46
|
-
] = UNSET
|
|
47
|
-
r"""Optional block number (defaults to latest)."""
|
|
48
|
-
|
|
49
|
-
user_address: Annotated[
|
|
50
|
-
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
51
|
-
] = "0xB7954A07213413b2ec6Faa1360f56a498eACe10b"
|
|
52
|
-
r"""The user address of the desired position."""
|
|
53
|
-
|
|
54
|
-
market_address: Annotated[
|
|
55
|
-
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
56
|
-
] = "0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"
|
|
57
|
-
r"""The market address of the desired position."""
|
|
58
|
-
|
|
59
|
-
@model_serializer(mode="wrap")
|
|
60
|
-
def serialize_model(self, handler):
|
|
61
|
-
optional_fields = ["block"]
|
|
62
|
-
nullable_fields = ["block"]
|
|
63
|
-
null_default_fields = []
|
|
64
|
-
|
|
65
|
-
serialized = handler(self)
|
|
66
|
-
|
|
67
|
-
m = {}
|
|
68
|
-
|
|
69
|
-
for n, f in type(self).model_fields.items():
|
|
70
|
-
k = f.alias or n
|
|
71
|
-
val = serialized.get(k)
|
|
72
|
-
serialized.pop(k, None)
|
|
73
|
-
|
|
74
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
75
|
-
is_set = (
|
|
76
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
77
|
-
or k in null_default_fields
|
|
78
|
-
) # pylint: disable=no-member
|
|
79
|
-
|
|
80
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
81
|
-
m[k] = val
|
|
82
|
-
elif val != UNSET_SENTINEL and (
|
|
83
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
84
|
-
):
|
|
85
|
-
m[k] = val
|
|
86
|
-
|
|
87
|
-
return m
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import BaseModel
|
|
5
|
-
from datetime import datetime
|
|
6
|
-
from typing_extensions import TypedDict
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class PendleGetUserPositionResponseTypedDict(TypedDict):
|
|
10
|
-
claimable_yield: str
|
|
11
|
-
r"""The amount of yield that can be claimed in the underlying token."""
|
|
12
|
-
sy_balance: str
|
|
13
|
-
r"""The amount of SY tokens the user currently holds."""
|
|
14
|
-
pt_balance: str
|
|
15
|
-
r"""The amount of PT tokens the user currently holds."""
|
|
16
|
-
yt_balance: str
|
|
17
|
-
r"""The amount of YT tokens the user currently holds."""
|
|
18
|
-
lp_balance: str
|
|
19
|
-
r"""The amount of LP tokens the user currently holds."""
|
|
20
|
-
underlying_token_balance: str
|
|
21
|
-
r"""The amount of underlying tokens the user currently holds."""
|
|
22
|
-
underlying_token_name: str
|
|
23
|
-
r"""The name of the underlying token."""
|
|
24
|
-
underlying_token_symbol: str
|
|
25
|
-
r"""The symbol of the underlying token."""
|
|
26
|
-
maturity_date: datetime
|
|
27
|
-
r"""The maturity date of the market. ISO 8601 format. UTC timezone."""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class PendleGetUserPositionResponse(BaseModel):
|
|
31
|
-
claimable_yield: str
|
|
32
|
-
r"""The amount of yield that can be claimed in the underlying token."""
|
|
33
|
-
|
|
34
|
-
sy_balance: str
|
|
35
|
-
r"""The amount of SY tokens the user currently holds."""
|
|
36
|
-
|
|
37
|
-
pt_balance: str
|
|
38
|
-
r"""The amount of PT tokens the user currently holds."""
|
|
39
|
-
|
|
40
|
-
yt_balance: str
|
|
41
|
-
r"""The amount of YT tokens the user currently holds."""
|
|
42
|
-
|
|
43
|
-
lp_balance: str
|
|
44
|
-
r"""The amount of LP tokens the user currently holds."""
|
|
45
|
-
|
|
46
|
-
underlying_token_balance: str
|
|
47
|
-
r"""The amount of underlying tokens the user currently holds."""
|
|
48
|
-
|
|
49
|
-
underlying_token_name: str
|
|
50
|
-
r"""The name of the underlying token."""
|
|
51
|
-
|
|
52
|
-
underlying_token_symbol: str
|
|
53
|
-
r"""The symbol of the underlying token."""
|
|
54
|
-
|
|
55
|
-
maturity_date: datetime
|
|
56
|
-
r"""The maturity date of the market. ISO 8601 format. UTC timezone."""
|
|
File without changes
|