compass_api_sdk 0.6.0__py3-none-any.whl → 0.6.2__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.

Files changed (69) hide show
  1. compass_api_sdk/_version.py +2 -2
  2. compass_api_sdk/aave_v3.py +38 -104
  3. compass_api_sdk/aerodrome_slipstream.py +8 -28
  4. compass_api_sdk/models/__init__.py +107 -230
  5. compass_api_sdk/models/aave_avg_rateop.py +44 -16
  6. compass_api_sdk/models/aave_historical_transactionsop.py +45 -20
  7. compass_api_sdk/models/aave_liquidity_changeop.py +44 -18
  8. compass_api_sdk/models/aave_rateop.py +44 -16
  9. compass_api_sdk/models/aave_reserve_overviewop.py +44 -18
  10. compass_api_sdk/models/aave_std_rateop.py +44 -16
  11. compass_api_sdk/models/aave_token_priceop.py +44 -18
  12. compass_api_sdk/models/aave_user_position_per_tokenop.py +44 -20
  13. compass_api_sdk/models/aave_user_position_summaryop.py +44 -20
  14. compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +45 -20
  15. compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +45 -20
  16. compass_api_sdk/models/{tokenbalance.py → compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py} +4 -2
  17. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_tokenbalance.py +18 -0
  18. compass_api_sdk/models/details.py +39 -0
  19. compass_api_sdk/models/generic_allowanceop.py +45 -18
  20. compass_api_sdk/models/generic_ensop.py +45 -16
  21. compass_api_sdk/models/generic_portfolioop.py +45 -18
  22. compass_api_sdk/models/generic_supported_tokensop.py +44 -20
  23. compass_api_sdk/models/generic_visualize_portfolioop.py +45 -20
  24. compass_api_sdk/models/increaseallowanceparams.py +20 -16
  25. compass_api_sdk/models/increaseallowancerequest.py +20 -16
  26. compass_api_sdk/models/lpbalance.py +20 -0
  27. compass_api_sdk/models/morpho_market_positionop.py +44 -18
  28. compass_api_sdk/models/morpho_marketop.py +44 -18
  29. compass_api_sdk/models/morpho_marketsop.py +7 -18
  30. compass_api_sdk/models/morpho_user_positionop.py +44 -18
  31. compass_api_sdk/models/morpho_vault_positionop.py +44 -18
  32. compass_api_sdk/models/morpho_vaultop.py +44 -16
  33. compass_api_sdk/models/morpho_vaultsop.py +7 -18
  34. compass_api_sdk/models/movement10percent.py +23 -0
  35. compass_api_sdk/models/multicallactiontype.py +0 -1
  36. compass_api_sdk/models/multicallauthorizationrequest.py +1 -15
  37. compass_api_sdk/models/openposition.py +28 -0
  38. compass_api_sdk/models/pendle_marketop.py +45 -19
  39. compass_api_sdk/models/pendle_marketsop.py +73 -0
  40. compass_api_sdk/models/pendle_positionop.py +45 -19
  41. compass_api_sdk/models/pendle_positionsop.py +80 -0
  42. compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
  43. compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
  44. compass_api_sdk/models/pendlemarket.py +46 -0
  45. compass_api_sdk/models/portfolio.py +10 -3
  46. compass_api_sdk/models/position.py +41 -0
  47. compass_api_sdk/models/sky_positionop.py +45 -16
  48. compass_api_sdk/models/syposition.py +17 -0
  49. compass_api_sdk/models/token_addressop.py +44 -18
  50. compass_api_sdk/models/token_balanceop.py +44 -17
  51. compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +44 -20
  52. compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +45 -20
  53. compass_api_sdk/models/uniswap_pool_priceop.py +44 -18
  54. compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +44 -19
  55. compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +44 -19
  56. compass_api_sdk/models/useroperation.py +20 -26
  57. compass_api_sdk/models/yieldrange.py +16 -0
  58. compass_api_sdk/morpho.py +28 -72
  59. compass_api_sdk/pendle.py +423 -21
  60. compass_api_sdk/sky.py +4 -8
  61. compass_api_sdk/token_sdk.py +8 -16
  62. compass_api_sdk/transaction_batching.py +0 -6
  63. compass_api_sdk/uniswap_v3.py +20 -64
  64. compass_api_sdk/universal.py +34 -60
  65. {compass_api_sdk-0.6.0.dist-info → compass_api_sdk-0.6.2.dist-info}/METADATA +5 -3
  66. {compass_api_sdk-0.6.0.dist-info → compass_api_sdk-0.6.2.dist-info}/RECORD +67 -56
  67. compass_api_sdk/models/contractname.py +0 -41
  68. compass_api_sdk/models/increaseallowanceanyparams.py +0 -58
  69. {compass_api_sdk-0.6.0.dist-info → compass_api_sdk-0.6.2.dist-info}/WHEEL +0 -0
@@ -19,12 +19,7 @@ class UniswapV3(BaseSDK):
19
19
  models.UniswapQuoteBuyExactlyAmountOut,
20
20
  models.UniswapQuoteBuyExactlyAmountOutTypedDict,
21
21
  ],
22
- block: Optional[
23
- Union[
24
- models.UniswapQuoteBuyExactlyBlock,
25
- models.UniswapQuoteBuyExactlyBlockTypedDict,
26
- ]
27
- ] = None,
22
+ block: OptionalNullable[int] = UNSET,
28
23
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
29
24
  server_url: Optional[str] = None,
30
25
  timeout_ms: Optional[int] = None,
@@ -43,7 +38,7 @@ class UniswapV3(BaseSDK):
43
38
  :param token_out: The symbol of the token to swap to.
44
39
  :param fee: The fee to pay for the swap
45
40
  :param amount_out: The amount of the token to swap to
46
- :param block: The block number you want to get this data at.
41
+ :param block: Optional block number (defaults to latest).
47
42
  :param retries: Override the default retry configuration for this method
48
43
  :param server_url: Override the default server URL for this method
49
44
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -145,12 +140,7 @@ class UniswapV3(BaseSDK):
145
140
  models.UniswapQuoteBuyExactlyAmountOut,
146
141
  models.UniswapQuoteBuyExactlyAmountOutTypedDict,
147
142
  ],
148
- block: Optional[
149
- Union[
150
- models.UniswapQuoteBuyExactlyBlock,
151
- models.UniswapQuoteBuyExactlyBlockTypedDict,
152
- ]
153
- ] = None,
143
+ block: OptionalNullable[int] = UNSET,
154
144
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
155
145
  server_url: Optional[str] = None,
156
146
  timeout_ms: Optional[int] = None,
@@ -169,7 +159,7 @@ class UniswapV3(BaseSDK):
169
159
  :param token_out: The symbol of the token to swap to.
170
160
  :param fee: The fee to pay for the swap
171
161
  :param amount_out: The amount of the token to swap to
172
- :param block: The block number you want to get this data at.
162
+ :param block: Optional block number (defaults to latest).
173
163
  :param retries: Override the default retry configuration for this method
174
164
  :param server_url: Override the default server URL for this method
175
165
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -271,12 +261,7 @@ class UniswapV3(BaseSDK):
271
261
  models.UniswapQuoteSellExactlyAmountIn,
272
262
  models.UniswapQuoteSellExactlyAmountInTypedDict,
273
263
  ],
274
- block: Optional[
275
- Union[
276
- models.UniswapQuoteSellExactlyBlock,
277
- models.UniswapQuoteSellExactlyBlockTypedDict,
278
- ]
279
- ] = None,
264
+ block: OptionalNullable[int] = UNSET,
280
265
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
281
266
  server_url: Optional[str] = None,
282
267
  timeout_ms: Optional[int] = None,
@@ -295,7 +280,7 @@ class UniswapV3(BaseSDK):
295
280
  :param token_out: The symbol of the token to swap to.
296
281
  :param fee: The fee to pay for the swap
297
282
  :param amount_in: The amount of the token to swap from
298
- :param block: The block number you want to get this data at.
283
+ :param block: Optional block number (defaults to latest).
299
284
  :param retries: Override the default retry configuration for this method
300
285
  :param server_url: Override the default server URL for this method
301
286
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -397,12 +382,7 @@ class UniswapV3(BaseSDK):
397
382
  models.UniswapQuoteSellExactlyAmountIn,
398
383
  models.UniswapQuoteSellExactlyAmountInTypedDict,
399
384
  ],
400
- block: Optional[
401
- Union[
402
- models.UniswapQuoteSellExactlyBlock,
403
- models.UniswapQuoteSellExactlyBlockTypedDict,
404
- ]
405
- ] = None,
385
+ block: OptionalNullable[int] = UNSET,
406
386
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
407
387
  server_url: Optional[str] = None,
408
388
  timeout_ms: Optional[int] = None,
@@ -421,7 +401,7 @@ class UniswapV3(BaseSDK):
421
401
  :param token_out: The symbol of the token to swap to.
422
402
  :param fee: The fee to pay for the swap
423
403
  :param amount_in: The amount of the token to swap from
424
- :param block: The block number you want to get this data at.
404
+ :param block: Optional block number (defaults to latest).
425
405
  :param retries: Override the default retry configuration for this method
426
406
  :param server_url: Override the default server URL for this method
427
407
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -519,9 +499,7 @@ class UniswapV3(BaseSDK):
519
499
  token_in: models.UniswapPoolPriceTokenInToken = models.UniswapPoolPriceTokenInToken.USDC,
520
500
  token_out: models.UniswapPoolPriceTokenOutToken = models.UniswapPoolPriceTokenOutToken.USDT,
521
501
  fee: models.UniswapPoolPriceFeeEnum = models.UniswapPoolPriceFeeEnum.ZERO_DOT_01,
522
- block: Optional[
523
- Union[models.UniswapPoolPriceBlock, models.UniswapPoolPriceBlockTypedDict]
524
- ] = None,
502
+ block: OptionalNullable[int] = UNSET,
525
503
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
526
504
  server_url: Optional[str] = None,
527
505
  timeout_ms: Optional[int] = None,
@@ -537,7 +515,7 @@ class UniswapV3(BaseSDK):
537
515
  :param token_in: The symbol of a token in the pool
538
516
  :param token_out: The symbol of a token in the pool
539
517
  :param fee: The fee of the pool
540
- :param block: The block number you want to get this data at.
518
+ :param block: Optional block number (defaults to latest).
541
519
  :param retries: Override the default retry configuration for this method
542
520
  :param server_url: Override the default server URL for this method
543
521
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -632,9 +610,7 @@ class UniswapV3(BaseSDK):
632
610
  token_in: models.UniswapPoolPriceTokenInToken = models.UniswapPoolPriceTokenInToken.USDC,
633
611
  token_out: models.UniswapPoolPriceTokenOutToken = models.UniswapPoolPriceTokenOutToken.USDT,
634
612
  fee: models.UniswapPoolPriceFeeEnum = models.UniswapPoolPriceFeeEnum.ZERO_DOT_01,
635
- block: Optional[
636
- Union[models.UniswapPoolPriceBlock, models.UniswapPoolPriceBlockTypedDict]
637
- ] = None,
613
+ block: OptionalNullable[int] = UNSET,
638
614
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
639
615
  server_url: Optional[str] = None,
640
616
  timeout_ms: Optional[int] = None,
@@ -650,7 +626,7 @@ class UniswapV3(BaseSDK):
650
626
  :param token_in: The symbol of a token in the pool
651
627
  :param token_out: The symbol of a token in the pool
652
628
  :param fee: The fee of the pool
653
- :param block: The block number you want to get this data at.
629
+ :param block: Optional block number (defaults to latest).
654
630
  :param retries: Override the default retry configuration for this method
655
631
  :param server_url: Override the default server URL for this method
656
632
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -743,12 +719,7 @@ class UniswapV3(BaseSDK):
743
719
  *,
744
720
  chain: models.UniswapLiquidityProvisionInRangeChain = models.UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET,
745
721
  token_id: int = 4318185,
746
- block: Optional[
747
- Union[
748
- models.UniswapLiquidityProvisionInRangeBlock,
749
- models.UniswapLiquidityProvisionInRangeBlockTypedDict,
750
- ]
751
- ] = None,
722
+ block: OptionalNullable[int] = UNSET,
752
723
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
753
724
  server_url: Optional[str] = None,
754
725
  timeout_ms: Optional[int] = None,
@@ -767,7 +738,7 @@ class UniswapV3(BaseSDK):
767
738
 
768
739
  :param chain: The chain to use.
769
740
  :param token_id: Token ID of the NFT representing the liquidity provisioned position.
770
- :param block: The block number you want to get this data at.
741
+ :param block: Optional block number (defaults to latest).
771
742
  :param retries: Override the default retry configuration for this method
772
743
  :param server_url: Override the default server URL for this method
773
744
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -860,12 +831,7 @@ class UniswapV3(BaseSDK):
860
831
  *,
861
832
  chain: models.UniswapLiquidityProvisionInRangeChain = models.UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET,
862
833
  token_id: int = 4318185,
863
- block: Optional[
864
- Union[
865
- models.UniswapLiquidityProvisionInRangeBlock,
866
- models.UniswapLiquidityProvisionInRangeBlockTypedDict,
867
- ]
868
- ] = None,
834
+ block: OptionalNullable[int] = UNSET,
869
835
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
870
836
  server_url: Optional[str] = None,
871
837
  timeout_ms: Optional[int] = None,
@@ -884,7 +850,7 @@ class UniswapV3(BaseSDK):
884
850
 
885
851
  :param chain: The chain to use.
886
852
  :param token_id: Token ID of the NFT representing the liquidity provisioned position.
887
- :param block: The block number you want to get this data at.
853
+ :param block: Optional block number (defaults to latest).
888
854
  :param retries: Override the default retry configuration for this method
889
855
  :param server_url: Override the default server URL for this method
890
856
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -976,12 +942,7 @@ class UniswapV3(BaseSDK):
976
942
  self,
977
943
  *,
978
944
  chain: models.UniswapLiquidityProvisionPositionsChain = models.UniswapLiquidityProvisionPositionsChain.ARBITRUM_MAINNET,
979
- block: Optional[
980
- Union[
981
- models.UniswapLiquidityProvisionPositionsBlock,
982
- models.UniswapLiquidityProvisionPositionsBlockTypedDict,
983
- ]
984
- ] = None,
945
+ block: OptionalNullable[int] = UNSET,
985
946
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
986
947
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
987
948
  server_url: Optional[str] = None,
@@ -999,7 +960,7 @@ class UniswapV3(BaseSDK):
999
960
  activities effectively.
1000
961
 
1001
962
  :param chain: The chain to use.
1002
- :param block: The block number you want to get this data at.
963
+ :param block: Optional block number (defaults to latest).
1003
964
  :param user: The user to get positions for.
1004
965
  :param retries: Override the default retry configuration for this method
1005
966
  :param server_url: Override the default server URL for this method
@@ -1092,12 +1053,7 @@ class UniswapV3(BaseSDK):
1092
1053
  self,
1093
1054
  *,
1094
1055
  chain: models.UniswapLiquidityProvisionPositionsChain = models.UniswapLiquidityProvisionPositionsChain.ARBITRUM_MAINNET,
1095
- block: Optional[
1096
- Union[
1097
- models.UniswapLiquidityProvisionPositionsBlock,
1098
- models.UniswapLiquidityProvisionPositionsBlockTypedDict,
1099
- ]
1100
- ] = None,
1056
+ block: OptionalNullable[int] = UNSET,
1101
1057
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
1102
1058
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1103
1059
  server_url: Optional[str] = None,
@@ -1115,7 +1071,7 @@ class UniswapV3(BaseSDK):
1115
1071
  activities effectively.
1116
1072
 
1117
1073
  :param chain: The chain to use.
1118
- :param block: The block number you want to get this data at.
1074
+ :param block: Optional block number (defaults to latest).
1119
1075
  :param user: The user to get positions for.
1120
1076
  :param retries: Override the default retry configuration for this method
1121
1077
  :param server_url: Override the default server URL for this method
@@ -12,9 +12,7 @@ class Universal(BaseSDK):
12
12
  self,
13
13
  *,
14
14
  chain: models.GenericPortfolioChain = models.GenericPortfolioChain.ARBITRUM_MAINNET,
15
- block: Optional[
16
- Union[models.GenericPortfolioBlock, models.GenericPortfolioBlockTypedDict]
17
- ] = None,
15
+ block: OptionalNullable[int] = UNSET,
18
16
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
19
17
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
20
18
  server_url: Optional[str] = None,
@@ -29,7 +27,7 @@ class Universal(BaseSDK):
29
27
  balances, including their respective values and quantities.
30
28
 
31
29
  :param chain: The chain to use.
32
- :param block: The block number you want to get this data at.
30
+ :param block: Optional block number (defaults to latest).
33
31
  :param user: The user to get portfolio for.
34
32
  :param retries: Override the default retry configuration for this method
35
33
  :param server_url: Override the default server URL for this method
@@ -120,9 +118,7 @@ class Universal(BaseSDK):
120
118
  self,
121
119
  *,
122
120
  chain: models.GenericPortfolioChain = models.GenericPortfolioChain.ARBITRUM_MAINNET,
123
- block: Optional[
124
- Union[models.GenericPortfolioBlock, models.GenericPortfolioBlockTypedDict]
125
- ] = None,
121
+ block: OptionalNullable[int] = UNSET,
126
122
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
127
123
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
128
124
  server_url: Optional[str] = None,
@@ -137,7 +133,7 @@ class Universal(BaseSDK):
137
133
  balances, including their respective values and quantities.
138
134
 
139
135
  :param chain: The chain to use.
140
- :param block: The block number you want to get this data at.
136
+ :param block: Optional block number (defaults to latest).
141
137
  :param user: The user to get portfolio for.
142
138
  :param retries: Override the default retry configuration for this method
143
139
  :param server_url: Override the default server URL for this method
@@ -228,12 +224,7 @@ class Universal(BaseSDK):
228
224
  self,
229
225
  *,
230
226
  chain: models.GenericVisualizePortfolioChain = models.GenericVisualizePortfolioChain.ARBITRUM_MAINNET,
231
- block: Optional[
232
- Union[
233
- models.GenericVisualizePortfolioBlock,
234
- models.GenericVisualizePortfolioBlockTypedDict,
235
- ]
236
- ] = None,
227
+ block: OptionalNullable[int] = UNSET,
237
228
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
238
229
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
239
230
  server_url: Optional[str] = None,
@@ -249,7 +240,7 @@ class Universal(BaseSDK):
249
240
  USD.
250
241
 
251
242
  :param chain: The chain to use.
252
- :param block: The block number you want to get this data at.
243
+ :param block: Optional block number (defaults to latest).
253
244
  :param user: The user to get portfolio for.
254
245
  :param retries: Override the default retry configuration for this method
255
246
  :param server_url: Override the default server URL for this method
@@ -340,12 +331,7 @@ class Universal(BaseSDK):
340
331
  self,
341
332
  *,
342
333
  chain: models.GenericVisualizePortfolioChain = models.GenericVisualizePortfolioChain.ARBITRUM_MAINNET,
343
- block: Optional[
344
- Union[
345
- models.GenericVisualizePortfolioBlock,
346
- models.GenericVisualizePortfolioBlockTypedDict,
347
- ]
348
- ] = None,
334
+ block: OptionalNullable[int] = UNSET,
349
335
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
350
336
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
351
337
  server_url: Optional[str] = None,
@@ -361,7 +347,7 @@ class Universal(BaseSDK):
361
347
  USD.
362
348
 
363
349
  :param chain: The chain to use.
364
- :param block: The block number you want to get this data at.
350
+ :param block: Optional block number (defaults to latest).
365
351
  :param user: The user to get portfolio for.
366
352
  :param retries: Override the default retry configuration for this method
367
353
  :param server_url: Override the default server URL for this method
@@ -452,12 +438,7 @@ class Universal(BaseSDK):
452
438
  self,
453
439
  *,
454
440
  chain: models.GenericSupportedTokensChain = models.GenericSupportedTokensChain.ARBITRUM_MAINNET,
455
- block: Optional[
456
- Union[
457
- models.GenericSupportedTokensBlock,
458
- models.GenericSupportedTokensBlockTypedDict,
459
- ]
460
- ] = None,
441
+ block: OptionalNullable[int] = UNSET,
461
442
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
462
443
  server_url: Optional[str] = None,
463
444
  timeout_ms: Optional[int] = None,
@@ -468,7 +449,7 @@ class Universal(BaseSDK):
468
449
  Get the list of supported tokens on a chain by the Compass API.
469
450
 
470
451
  :param chain: The chain to use.
471
- :param block: The block number you want to get this data at.
452
+ :param block: Optional block number (defaults to latest).
472
453
  :param retries: Override the default retry configuration for this method
473
454
  :param server_url: Override the default server URL for this method
474
455
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -557,12 +538,7 @@ class Universal(BaseSDK):
557
538
  self,
558
539
  *,
559
540
  chain: models.GenericSupportedTokensChain = models.GenericSupportedTokensChain.ARBITRUM_MAINNET,
560
- block: Optional[
561
- Union[
562
- models.GenericSupportedTokensBlock,
563
- models.GenericSupportedTokensBlockTypedDict,
564
- ]
565
- ] = None,
541
+ block: OptionalNullable[int] = UNSET,
566
542
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
567
543
  server_url: Optional[str] = None,
568
544
  timeout_ms: Optional[int] = None,
@@ -573,7 +549,7 @@ class Universal(BaseSDK):
573
549
  Get the list of supported tokens on a chain by the Compass API.
574
550
 
575
551
  :param chain: The chain to use.
576
- :param block: The block number you want to get this data at.
552
+ :param block: Optional block number (defaults to latest).
577
553
  :param retries: Override the default retry configuration for this method
578
554
  :param server_url: Override the default server URL for this method
579
555
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -664,9 +640,7 @@ class Universal(BaseSDK):
664
640
  chain: models.GenericAllowanceChain = models.GenericAllowanceChain.ARBITRUM_MAINNET,
665
641
  token: models.GenericAllowanceToken = models.GenericAllowanceToken.USDC,
666
642
  contract_name: models.GenericAllowanceContractName = models.GenericAllowanceContractName.AAVE_V3_POOL,
667
- block: Optional[
668
- Union[models.GenericAllowanceBlock, models.GenericAllowanceBlockTypedDict]
669
- ] = None,
643
+ block: OptionalNullable[int] = UNSET,
670
644
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
671
645
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
672
646
  server_url: Optional[str] = None,
@@ -686,7 +660,7 @@ class Universal(BaseSDK):
686
660
  :param chain: The chain to use.
687
661
  :param token: The symbol of the token for which the allowance is checked..
688
662
  :param contract_name: The name of the contract to check allowance for.
689
- :param block: The block number you want to get this data at.
663
+ :param block: Optional block number (defaults to latest).
690
664
  :param user: The user to get the ERC20 allowance of.
691
665
  :param retries: Override the default retry configuration for this method
692
666
  :param server_url: Override the default server URL for this method
@@ -781,9 +755,7 @@ class Universal(BaseSDK):
781
755
  chain: models.GenericAllowanceChain = models.GenericAllowanceChain.ARBITRUM_MAINNET,
782
756
  token: models.GenericAllowanceToken = models.GenericAllowanceToken.USDC,
783
757
  contract_name: models.GenericAllowanceContractName = models.GenericAllowanceContractName.AAVE_V3_POOL,
784
- block: Optional[
785
- Union[models.GenericAllowanceBlock, models.GenericAllowanceBlockTypedDict]
786
- ] = None,
758
+ block: OptionalNullable[int] = UNSET,
787
759
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
788
760
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
789
761
  server_url: Optional[str] = None,
@@ -803,7 +775,7 @@ class Universal(BaseSDK):
803
775
  :param chain: The chain to use.
804
776
  :param token: The symbol of the token for which the allowance is checked..
805
777
  :param contract_name: The name of the contract to check allowance for.
806
- :param block: The block number you want to get this data at.
778
+ :param block: Optional block number (defaults to latest).
807
779
  :param user: The user to get the ERC20 allowance of.
808
780
  :param retries: Override the default retry configuration for this method
809
781
  :param server_url: Override the default server URL for this method
@@ -896,9 +868,7 @@ class Universal(BaseSDK):
896
868
  self,
897
869
  *,
898
870
  chain: models.GenericEnsChain = models.GenericEnsChain.ETHEREUM_MAINNET,
899
- block: Optional[
900
- Union[models.GenericEnsBlock, models.GenericEnsBlockTypedDict]
901
- ] = None,
871
+ block: OptionalNullable[int] = UNSET,
902
872
  ens_name: Optional[str] = "vitalik.eth",
903
873
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
904
874
  server_url: Optional[str] = None,
@@ -913,7 +883,7 @@ class Universal(BaseSDK):
913
883
  query the actual ethereum wallet address behind the ENS name.
914
884
 
915
885
  :param chain: The chain to use.
916
- :param block: The block number you want to get this data at.
886
+ :param block: Optional block number (defaults to latest).
917
887
  :param ens_name: The ENS name to resolve.
918
888
  :param retries: Override the default retry configuration for this method
919
889
  :param server_url: Override the default server URL for this method
@@ -1004,9 +974,7 @@ class Universal(BaseSDK):
1004
974
  self,
1005
975
  *,
1006
976
  chain: models.GenericEnsChain = models.GenericEnsChain.ETHEREUM_MAINNET,
1007
- block: Optional[
1008
- Union[models.GenericEnsBlock, models.GenericEnsBlockTypedDict]
1009
- ] = None,
977
+ block: OptionalNullable[int] = UNSET,
1010
978
  ens_name: Optional[str] = "vitalik.eth",
1011
979
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1012
980
  server_url: Optional[str] = None,
@@ -1021,7 +989,7 @@ class Universal(BaseSDK):
1021
989
  query the actual ethereum wallet address behind the ENS name.
1022
990
 
1023
991
  :param chain: The chain to use.
1024
- :param block: The block number you want to get this data at.
992
+ :param block: Optional block number (defaults to latest).
1025
993
  :param ens_name: The ENS name to resolve.
1026
994
  :param retries: Override the default retry configuration for this method
1027
995
  :param server_url: Override the default server URL for this method
@@ -1547,7 +1515,10 @@ class Universal(BaseSDK):
1547
1515
  def allowance_set(
1548
1516
  self,
1549
1517
  *,
1550
- token: models.TokenEnum,
1518
+ token: Union[
1519
+ models.IncreaseAllowanceRequestToken,
1520
+ models.IncreaseAllowanceRequestTokenTypedDict,
1521
+ ],
1551
1522
  contract_name: models.IncreaseAllowanceRequestContractName,
1552
1523
  amount: Union[
1553
1524
  models.IncreaseAllowanceRequestAmount,
@@ -1560,7 +1531,7 @@ class Universal(BaseSDK):
1560
1531
  timeout_ms: Optional[int] = None,
1561
1532
  http_headers: Optional[Mapping[str, str]] = None,
1562
1533
  ) -> models.TxResponse:
1563
- r"""Set Allowance - Protocol
1534
+ r"""Set Allowance (symbol)
1564
1535
 
1565
1536
  This endpoint allows users to modify the token allowance for a specific protocol.
1566
1537
 
@@ -1570,9 +1541,9 @@ class Universal(BaseSDK):
1570
1541
  tokens securely and efficiently, enabling seamless transactions and operations
1571
1542
  within the DeFi ecosystem.
1572
1543
 
1573
- :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.
1544
+ :param token: The symbol or address of the token for which the allowance is increased..
1574
1545
  :param contract_name: The name of the contract to increase allowance for.
1575
- :param amount: The amount of tokens to increase the allowance by.
1546
+ :param amount: The amount to increase the allowance to.
1576
1547
  :param chain: The chain to use.
1577
1548
  :param sender: The address of the transaction sender.
1578
1549
  :param retries: Override the default retry configuration for this method
@@ -1668,7 +1639,10 @@ class Universal(BaseSDK):
1668
1639
  async def allowance_set_async(
1669
1640
  self,
1670
1641
  *,
1671
- token: models.TokenEnum,
1642
+ token: Union[
1643
+ models.IncreaseAllowanceRequestToken,
1644
+ models.IncreaseAllowanceRequestTokenTypedDict,
1645
+ ],
1672
1646
  contract_name: models.IncreaseAllowanceRequestContractName,
1673
1647
  amount: Union[
1674
1648
  models.IncreaseAllowanceRequestAmount,
@@ -1681,7 +1655,7 @@ class Universal(BaseSDK):
1681
1655
  timeout_ms: Optional[int] = None,
1682
1656
  http_headers: Optional[Mapping[str, str]] = None,
1683
1657
  ) -> models.TxResponse:
1684
- r"""Set Allowance - Protocol
1658
+ r"""Set Allowance (symbol)
1685
1659
 
1686
1660
  This endpoint allows users to modify the token allowance for a specific protocol.
1687
1661
 
@@ -1691,9 +1665,9 @@ class Universal(BaseSDK):
1691
1665
  tokens securely and efficiently, enabling seamless transactions and operations
1692
1666
  within the DeFi ecosystem.
1693
1667
 
1694
- :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.
1668
+ :param token: The symbol or address of the token for which the allowance is increased..
1695
1669
  :param contract_name: The name of the contract to increase allowance for.
1696
- :param amount: The amount of tokens to increase the allowance by.
1670
+ :param amount: The amount to increase the allowance to.
1697
1671
  :param chain: The chain to use.
1698
1672
  :param sender: The address of the transaction sender.
1699
1673
  :param retries: Override the default retry configuration for this method
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: compass_api_sdk
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: Compass API SDK.
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9.2
@@ -192,7 +192,7 @@ with CompassAPI(
192
192
 
193
193
  ### [aave_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md)
194
194
 
195
- * [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest Rates: now
195
+ * [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest Rates
196
196
  * [avg_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#avg_rate) - Interest Rates: time average
197
197
  * [std_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#std_rate) - Interest Rates: standard deviation
198
198
  * [reserve_overview](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#reserve_overview) - Reserve overview
@@ -237,6 +237,8 @@ with CompassAPI(
237
237
  ### [pendle](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md)
238
238
 
239
239
  * [position](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#position) - Check User's Market Position
240
+ * [positions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#positions) - List User's Market Positions
241
+ * [markets](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#markets) - List Market Data
240
242
  * [market](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#market) - Get Market Data
241
243
 
242
244
  ### [sky](https://github.com/CompassLabs/mono/blob/master/docs/sdks/sky/README.md)
@@ -286,7 +288,7 @@ with CompassAPI(
286
288
  * [ens](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#ens) - Resolve ENS
287
289
  * [wrap_eth](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#wrap_eth) - Wrap ETH
288
290
  * [unwrap_weth](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#unwrap_weth) - Unwrap WETH
289
- * [allowance_set](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#allowance_set) - Set Allowance - Protocol
291
+ * [allowance_set](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#allowance_set) - Set Allowance (symbol)
290
292
 
291
293
  </details>
292
294
  <!-- End Available Resources and Operations [operations] -->