compass_api_sdk 0.9.7__py3-none-any.whl → 0.9.9__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 +2 -14
- compass_api_sdk/aerodrome_slipstream.py +0 -12
- compass_api_sdk/models/__init__.py +68 -6
- compass_api_sdk/models/aave_avg_rateop.py +1 -1
- compass_api_sdk/models/aave_historical_transactionsop.py +1 -46
- compass_api_sdk/models/aave_liquidity_changeop.py +2 -47
- compass_api_sdk/models/aavelooprequest.py +17 -9
- compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +1 -46
- compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +1 -46
- compass_api_sdk/models/generic_allowanceop.py +1 -46
- compass_api_sdk/models/generic_ensop.py +1 -46
- compass_api_sdk/models/generic_portfolioop.py +1 -46
- compass_api_sdk/models/generic_supported_tokensop.py +2 -47
- compass_api_sdk/models/generic_visualize_portfolioop.py +1 -46
- compass_api_sdk/models/morpho_market_positionop.py +2 -47
- compass_api_sdk/models/morpho_marketop.py +2 -47
- compass_api_sdk/models/morpho_marketsop.py +2 -10
- compass_api_sdk/models/morpho_user_positionop.py +2 -47
- compass_api_sdk/models/morpho_vault_positionop.py +2 -47
- compass_api_sdk/models/morpho_vaultop.py +2 -47
- compass_api_sdk/models/morpho_vaultsop.py +2 -10
- compass_api_sdk/models/pendle_marketop.py +2 -47
- compass_api_sdk/models/pendle_marketsop.py +2 -47
- compass_api_sdk/models/pendle_positionop.py +2 -47
- compass_api_sdk/models/pendle_positionsop.py +2 -47
- compass_api_sdk/models/pendleaddliquidityparams.py +45 -0
- compass_api_sdk/models/pendleaddliquidityrequest.py +56 -0
- compass_api_sdk/models/pendlegetmarketresponse.py +5 -0
- compass_api_sdk/models/pendlegetuserpositionresponse.py +5 -0
- compass_api_sdk/models/pendleremoveliquidityparams.py +45 -0
- compass_api_sdk/models/pendleremoveliquidityrequest.py +56 -0
- compass_api_sdk/models/sky_positionop.py +2 -47
- compass_api_sdk/models/token_addressop.py +2 -47
- compass_api_sdk/models/token_balanceop.py +2 -47
- compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +2 -47
- compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +1 -46
- compass_api_sdk/models/uniswap_pool_priceop.py +2 -47
- compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +2 -47
- compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +2 -47
- compass_api_sdk/models/useroperation.py +25 -13
- compass_api_sdk/morpho.py +0 -42
- compass_api_sdk/pendle.py +508 -66
- compass_api_sdk/sky.py +0 -6
- compass_api_sdk/token_sdk.py +0 -12
- compass_api_sdk/transaction_batching.py +14 -14
- compass_api_sdk/uniswap_v3.py +0 -30
- compass_api_sdk/universal.py +6 -34
- {compass_api_sdk-0.9.7.dist-info → compass_api_sdk-0.9.9.dist-info}/METADATA +5 -3
- {compass_api_sdk-0.9.7.dist-info → compass_api_sdk-0.9.9.dist-info}/RECORD +51 -47
- {compass_api_sdk-0.9.7.dist-info → compass_api_sdk-0.9.9.dist-info}/WHEEL +0 -0
compass_api_sdk/sky.py
CHANGED
|
@@ -12,7 +12,6 @@ class Sky(BaseSDK):
|
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
14
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
15
|
-
block: OptionalNullable[int] = UNSET,
|
|
16
15
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
17
16
|
server_url: Optional[str] = None,
|
|
18
17
|
timeout_ms: Optional[int] = None,
|
|
@@ -23,7 +22,6 @@ class Sky(BaseSDK):
|
|
|
23
22
|
Check the USDS overall position.
|
|
24
23
|
|
|
25
24
|
:param user_address: The user address of the desired position.
|
|
26
|
-
:param block: Optional block number (defaults to latest).
|
|
27
25
|
:param retries: Override the default retry configuration for this method
|
|
28
26
|
:param server_url: Override the default server URL for this method
|
|
29
27
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -40,7 +38,6 @@ class Sky(BaseSDK):
|
|
|
40
38
|
base_url = self._get_url(base_url, url_variables)
|
|
41
39
|
|
|
42
40
|
request = models.SkyPositionRequest(
|
|
43
|
-
block=block,
|
|
44
41
|
user_address=user_address,
|
|
45
42
|
)
|
|
46
43
|
|
|
@@ -113,7 +110,6 @@ class Sky(BaseSDK):
|
|
|
113
110
|
self,
|
|
114
111
|
*,
|
|
115
112
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
116
|
-
block: OptionalNullable[int] = UNSET,
|
|
117
113
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
118
114
|
server_url: Optional[str] = None,
|
|
119
115
|
timeout_ms: Optional[int] = None,
|
|
@@ -124,7 +120,6 @@ class Sky(BaseSDK):
|
|
|
124
120
|
Check the USDS overall position.
|
|
125
121
|
|
|
126
122
|
:param user_address: The user address of the desired position.
|
|
127
|
-
:param block: Optional block number (defaults to latest).
|
|
128
123
|
:param retries: Override the default retry configuration for this method
|
|
129
124
|
:param server_url: Override the default server URL for this method
|
|
130
125
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -141,7 +136,6 @@ class Sky(BaseSDK):
|
|
|
141
136
|
base_url = self._get_url(base_url, url_variables)
|
|
142
137
|
|
|
143
138
|
request = models.SkyPositionRequest(
|
|
144
|
-
block=block,
|
|
145
139
|
user_address=user_address,
|
|
146
140
|
)
|
|
147
141
|
|
compass_api_sdk/token_sdk.py
CHANGED
|
@@ -13,7 +13,6 @@ class TokenSDK(BaseSDK):
|
|
|
13
13
|
*,
|
|
14
14
|
chain: models.TokenAddressChain = models.TokenAddressChain.ARBITRUM_MAINNET,
|
|
15
15
|
token: models.TokenAddressToken = models.TokenAddressToken.WETH,
|
|
16
|
-
block: OptionalNullable[int] = UNSET,
|
|
17
16
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
17
|
server_url: Optional[str] = None,
|
|
19
18
|
timeout_ms: Optional[int] = None,
|
|
@@ -25,7 +24,6 @@ class TokenSDK(BaseSDK):
|
|
|
25
24
|
|
|
26
25
|
:param chain: The chain to use.
|
|
27
26
|
:param token: The token symbol to get the address for..
|
|
28
|
-
:param block: Optional block number (defaults to latest).
|
|
29
27
|
:param retries: Override the default retry configuration for this method
|
|
30
28
|
:param server_url: Override the default server URL for this method
|
|
31
29
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -43,7 +41,6 @@ class TokenSDK(BaseSDK):
|
|
|
43
41
|
|
|
44
42
|
request = models.TokenAddressRequest(
|
|
45
43
|
chain=chain,
|
|
46
|
-
block=block,
|
|
47
44
|
token=token,
|
|
48
45
|
)
|
|
49
46
|
|
|
@@ -117,7 +114,6 @@ class TokenSDK(BaseSDK):
|
|
|
117
114
|
*,
|
|
118
115
|
chain: models.TokenAddressChain = models.TokenAddressChain.ARBITRUM_MAINNET,
|
|
119
116
|
token: models.TokenAddressToken = models.TokenAddressToken.WETH,
|
|
120
|
-
block: OptionalNullable[int] = UNSET,
|
|
121
117
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
122
118
|
server_url: Optional[str] = None,
|
|
123
119
|
timeout_ms: Optional[int] = None,
|
|
@@ -129,7 +125,6 @@ class TokenSDK(BaseSDK):
|
|
|
129
125
|
|
|
130
126
|
:param chain: The chain to use.
|
|
131
127
|
:param token: The token symbol to get the address for..
|
|
132
|
-
:param block: Optional block number (defaults to latest).
|
|
133
128
|
:param retries: Override the default retry configuration for this method
|
|
134
129
|
:param server_url: Override the default server URL for this method
|
|
135
130
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -147,7 +142,6 @@ class TokenSDK(BaseSDK):
|
|
|
147
142
|
|
|
148
143
|
request = models.TokenAddressRequest(
|
|
149
144
|
chain=chain,
|
|
150
|
-
block=block,
|
|
151
145
|
token=token,
|
|
152
146
|
)
|
|
153
147
|
|
|
@@ -432,7 +426,6 @@ class TokenSDK(BaseSDK):
|
|
|
432
426
|
chain: models.TokenBalanceChain = models.TokenBalanceChain.ARBITRUM_MAINNET,
|
|
433
427
|
user: str = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
434
428
|
token: Union[models.TokenBalanceToken, models.TokenBalanceTokenTypedDict],
|
|
435
|
-
block: OptionalNullable[int] = UNSET,
|
|
436
429
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
437
430
|
server_url: Optional[str] = None,
|
|
438
431
|
timeout_ms: Optional[int] = None,
|
|
@@ -445,7 +438,6 @@ class TokenSDK(BaseSDK):
|
|
|
445
438
|
:param chain: The chain to use.
|
|
446
439
|
:param user: The user to get the ERC20 balance of.
|
|
447
440
|
:param token: The symbol of the token for which the balance is checked..
|
|
448
|
-
:param block: Optional block number (defaults to latest).
|
|
449
441
|
:param retries: Override the default retry configuration for this method
|
|
450
442
|
:param server_url: Override the default server URL for this method
|
|
451
443
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -463,7 +455,6 @@ class TokenSDK(BaseSDK):
|
|
|
463
455
|
|
|
464
456
|
request = models.TokenBalanceRequest(
|
|
465
457
|
chain=chain,
|
|
466
|
-
block=block,
|
|
467
458
|
user=user,
|
|
468
459
|
token=token,
|
|
469
460
|
)
|
|
@@ -539,7 +530,6 @@ class TokenSDK(BaseSDK):
|
|
|
539
530
|
chain: models.TokenBalanceChain = models.TokenBalanceChain.ARBITRUM_MAINNET,
|
|
540
531
|
user: str = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
541
532
|
token: Union[models.TokenBalanceToken, models.TokenBalanceTokenTypedDict],
|
|
542
|
-
block: OptionalNullable[int] = UNSET,
|
|
543
533
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
544
534
|
server_url: Optional[str] = None,
|
|
545
535
|
timeout_ms: Optional[int] = None,
|
|
@@ -552,7 +542,6 @@ class TokenSDK(BaseSDK):
|
|
|
552
542
|
:param chain: The chain to use.
|
|
553
543
|
:param user: The user to get the ERC20 balance of.
|
|
554
544
|
:param token: The symbol of the token for which the balance is checked..
|
|
555
|
-
:param block: Optional block number (defaults to latest).
|
|
556
545
|
:param retries: Override the default retry configuration for this method
|
|
557
546
|
:param server_url: Override the default server URL for this method
|
|
558
547
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -570,7 +559,6 @@ class TokenSDK(BaseSDK):
|
|
|
570
559
|
|
|
571
560
|
request = models.TokenBalanceRequest(
|
|
572
561
|
chain=chain,
|
|
573
|
-
block=block,
|
|
574
562
|
user=user,
|
|
575
563
|
token=token,
|
|
576
564
|
)
|
|
@@ -484,10 +484,10 @@ class TransactionBatching(BaseSDK):
|
|
|
484
484
|
],
|
|
485
485
|
collateral_token: models.TokenEnum,
|
|
486
486
|
borrow_token: models.TokenEnum,
|
|
487
|
-
|
|
488
|
-
models.
|
|
487
|
+
initial_collateral_amount: Union[
|
|
488
|
+
models.InitialCollateralAmount, models.InitialCollateralAmountTypedDict
|
|
489
489
|
],
|
|
490
|
-
|
|
490
|
+
multiplier: Union[models.Multiplier, models.MultiplierTypedDict],
|
|
491
491
|
max_slippage_percent: float,
|
|
492
492
|
loan_to_value: float,
|
|
493
493
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -514,8 +514,8 @@ class TransactionBatching(BaseSDK):
|
|
|
514
514
|
:param signed_authorization:
|
|
515
515
|
:param collateral_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.
|
|
516
516
|
:param borrow_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.
|
|
517
|
-
:param
|
|
518
|
-
:param
|
|
517
|
+
:param initial_collateral_amount: Amount of collateral token to supply to Aave
|
|
518
|
+
:param multiplier: Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`
|
|
519
519
|
:param max_slippage_percent: Maximum allowed slippage for token swaps in percentage
|
|
520
520
|
:param loan_to_value: Loan To Value percentage of the loop
|
|
521
521
|
:param retries: Override the default retry configuration for this method
|
|
@@ -541,8 +541,8 @@ class TransactionBatching(BaseSDK):
|
|
|
541
541
|
),
|
|
542
542
|
collateral_token=collateral_token,
|
|
543
543
|
borrow_token=borrow_token,
|
|
544
|
-
|
|
545
|
-
|
|
544
|
+
initial_collateral_amount=initial_collateral_amount,
|
|
545
|
+
multiplier=multiplier,
|
|
546
546
|
max_slippage_percent=max_slippage_percent,
|
|
547
547
|
loan_to_value=loan_to_value,
|
|
548
548
|
)
|
|
@@ -627,10 +627,10 @@ class TransactionBatching(BaseSDK):
|
|
|
627
627
|
],
|
|
628
628
|
collateral_token: models.TokenEnum,
|
|
629
629
|
borrow_token: models.TokenEnum,
|
|
630
|
-
|
|
631
|
-
models.
|
|
630
|
+
initial_collateral_amount: Union[
|
|
631
|
+
models.InitialCollateralAmount, models.InitialCollateralAmountTypedDict
|
|
632
632
|
],
|
|
633
|
-
|
|
633
|
+
multiplier: Union[models.Multiplier, models.MultiplierTypedDict],
|
|
634
634
|
max_slippage_percent: float,
|
|
635
635
|
loan_to_value: float,
|
|
636
636
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -657,8 +657,8 @@ class TransactionBatching(BaseSDK):
|
|
|
657
657
|
:param signed_authorization:
|
|
658
658
|
:param collateral_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.
|
|
659
659
|
:param borrow_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.
|
|
660
|
-
:param
|
|
661
|
-
:param
|
|
660
|
+
:param initial_collateral_amount: Amount of collateral token to supply to Aave
|
|
661
|
+
:param multiplier: Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`
|
|
662
662
|
:param max_slippage_percent: Maximum allowed slippage for token swaps in percentage
|
|
663
663
|
:param loan_to_value: Loan To Value percentage of the loop
|
|
664
664
|
:param retries: Override the default retry configuration for this method
|
|
@@ -684,8 +684,8 @@ class TransactionBatching(BaseSDK):
|
|
|
684
684
|
),
|
|
685
685
|
collateral_token=collateral_token,
|
|
686
686
|
borrow_token=borrow_token,
|
|
687
|
-
|
|
688
|
-
|
|
687
|
+
initial_collateral_amount=initial_collateral_amount,
|
|
688
|
+
multiplier=multiplier,
|
|
689
689
|
max_slippage_percent=max_slippage_percent,
|
|
690
690
|
loan_to_value=loan_to_value,
|
|
691
691
|
)
|
compass_api_sdk/uniswap_v3.py
CHANGED
|
@@ -19,7 +19,6 @@ class UniswapV3(BaseSDK):
|
|
|
19
19
|
models.UniswapQuoteBuyExactlyAmountOut,
|
|
20
20
|
models.UniswapQuoteBuyExactlyAmountOutTypedDict,
|
|
21
21
|
],
|
|
22
|
-
block: OptionalNullable[int] = UNSET,
|
|
23
22
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
24
23
|
server_url: Optional[str] = None,
|
|
25
24
|
timeout_ms: Optional[int] = None,
|
|
@@ -38,7 +37,6 @@ class UniswapV3(BaseSDK):
|
|
|
38
37
|
:param token_out: The symbol of the token to swap to.
|
|
39
38
|
:param fee: The fee to pay for the swap
|
|
40
39
|
:param amount_out: The amount of the token to swap to
|
|
41
|
-
:param block: Optional block number (defaults to latest).
|
|
42
40
|
:param retries: Override the default retry configuration for this method
|
|
43
41
|
:param server_url: Override the default server URL for this method
|
|
44
42
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -56,7 +54,6 @@ class UniswapV3(BaseSDK):
|
|
|
56
54
|
|
|
57
55
|
request = models.UniswapQuoteBuyExactlyRequest(
|
|
58
56
|
chain=chain,
|
|
59
|
-
block=block,
|
|
60
57
|
token_in=token_in,
|
|
61
58
|
token_out=token_out,
|
|
62
59
|
fee=fee,
|
|
@@ -141,7 +138,6 @@ class UniswapV3(BaseSDK):
|
|
|
141
138
|
models.UniswapQuoteBuyExactlyAmountOut,
|
|
142
139
|
models.UniswapQuoteBuyExactlyAmountOutTypedDict,
|
|
143
140
|
],
|
|
144
|
-
block: OptionalNullable[int] = UNSET,
|
|
145
141
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
146
142
|
server_url: Optional[str] = None,
|
|
147
143
|
timeout_ms: Optional[int] = None,
|
|
@@ -160,7 +156,6 @@ class UniswapV3(BaseSDK):
|
|
|
160
156
|
:param token_out: The symbol of the token to swap to.
|
|
161
157
|
:param fee: The fee to pay for the swap
|
|
162
158
|
:param amount_out: The amount of the token to swap to
|
|
163
|
-
:param block: Optional block number (defaults to latest).
|
|
164
159
|
:param retries: Override the default retry configuration for this method
|
|
165
160
|
:param server_url: Override the default server URL for this method
|
|
166
161
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -178,7 +173,6 @@ class UniswapV3(BaseSDK):
|
|
|
178
173
|
|
|
179
174
|
request = models.UniswapQuoteBuyExactlyRequest(
|
|
180
175
|
chain=chain,
|
|
181
|
-
block=block,
|
|
182
176
|
token_in=token_in,
|
|
183
177
|
token_out=token_out,
|
|
184
178
|
fee=fee,
|
|
@@ -263,7 +257,6 @@ class UniswapV3(BaseSDK):
|
|
|
263
257
|
models.UniswapQuoteSellExactlyAmountIn,
|
|
264
258
|
models.UniswapQuoteSellExactlyAmountInTypedDict,
|
|
265
259
|
],
|
|
266
|
-
block: OptionalNullable[int] = UNSET,
|
|
267
260
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
268
261
|
server_url: Optional[str] = None,
|
|
269
262
|
timeout_ms: Optional[int] = None,
|
|
@@ -282,7 +275,6 @@ class UniswapV3(BaseSDK):
|
|
|
282
275
|
:param token_out: The symbol of the token to swap to.
|
|
283
276
|
:param fee: The fee to pay for the swap
|
|
284
277
|
:param amount_in: The amount of the token to swap from
|
|
285
|
-
:param block: Optional block number (defaults to latest).
|
|
286
278
|
:param retries: Override the default retry configuration for this method
|
|
287
279
|
:param server_url: Override the default server URL for this method
|
|
288
280
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -300,7 +292,6 @@ class UniswapV3(BaseSDK):
|
|
|
300
292
|
|
|
301
293
|
request = models.UniswapQuoteSellExactlyRequest(
|
|
302
294
|
chain=chain,
|
|
303
|
-
block=block,
|
|
304
295
|
token_in=token_in,
|
|
305
296
|
token_out=token_out,
|
|
306
297
|
fee=fee,
|
|
@@ -385,7 +376,6 @@ class UniswapV3(BaseSDK):
|
|
|
385
376
|
models.UniswapQuoteSellExactlyAmountIn,
|
|
386
377
|
models.UniswapQuoteSellExactlyAmountInTypedDict,
|
|
387
378
|
],
|
|
388
|
-
block: OptionalNullable[int] = UNSET,
|
|
389
379
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
390
380
|
server_url: Optional[str] = None,
|
|
391
381
|
timeout_ms: Optional[int] = None,
|
|
@@ -404,7 +394,6 @@ class UniswapV3(BaseSDK):
|
|
|
404
394
|
:param token_out: The symbol of the token to swap to.
|
|
405
395
|
:param fee: The fee to pay for the swap
|
|
406
396
|
:param amount_in: The amount of the token to swap from
|
|
407
|
-
:param block: Optional block number (defaults to latest).
|
|
408
397
|
:param retries: Override the default retry configuration for this method
|
|
409
398
|
:param server_url: Override the default server URL for this method
|
|
410
399
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -422,7 +411,6 @@ class UniswapV3(BaseSDK):
|
|
|
422
411
|
|
|
423
412
|
request = models.UniswapQuoteSellExactlyRequest(
|
|
424
413
|
chain=chain,
|
|
425
|
-
block=block,
|
|
426
414
|
token_in=token_in,
|
|
427
415
|
token_out=token_out,
|
|
428
416
|
fee=fee,
|
|
@@ -503,7 +491,6 @@ class UniswapV3(BaseSDK):
|
|
|
503
491
|
token_in: models.UniswapPoolPriceTokenInToken = models.UniswapPoolPriceTokenInToken.USDC,
|
|
504
492
|
token_out: models.UniswapPoolPriceTokenOutToken = models.UniswapPoolPriceTokenOutToken.USDT,
|
|
505
493
|
fee: models.UniswapPoolPriceFeeEnum = models.UniswapPoolPriceFeeEnum.ZERO_DOT_01,
|
|
506
|
-
block: OptionalNullable[int] = UNSET,
|
|
507
494
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
508
495
|
server_url: Optional[str] = None,
|
|
509
496
|
timeout_ms: Optional[int] = None,
|
|
@@ -519,7 +506,6 @@ class UniswapV3(BaseSDK):
|
|
|
519
506
|
:param token_in: The symbol of a token in the pool
|
|
520
507
|
:param token_out: The symbol of a token in the pool
|
|
521
508
|
:param fee: The fee of the pool
|
|
522
|
-
:param block: Optional block number (defaults to latest).
|
|
523
509
|
:param retries: Override the default retry configuration for this method
|
|
524
510
|
:param server_url: Override the default server URL for this method
|
|
525
511
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -537,7 +523,6 @@ class UniswapV3(BaseSDK):
|
|
|
537
523
|
|
|
538
524
|
request = models.UniswapPoolPriceRequest(
|
|
539
525
|
chain=chain,
|
|
540
|
-
block=block,
|
|
541
526
|
token_in=token_in,
|
|
542
527
|
token_out=token_out,
|
|
543
528
|
fee=fee,
|
|
@@ -615,7 +600,6 @@ class UniswapV3(BaseSDK):
|
|
|
615
600
|
token_in: models.UniswapPoolPriceTokenInToken = models.UniswapPoolPriceTokenInToken.USDC,
|
|
616
601
|
token_out: models.UniswapPoolPriceTokenOutToken = models.UniswapPoolPriceTokenOutToken.USDT,
|
|
617
602
|
fee: models.UniswapPoolPriceFeeEnum = models.UniswapPoolPriceFeeEnum.ZERO_DOT_01,
|
|
618
|
-
block: OptionalNullable[int] = UNSET,
|
|
619
603
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
620
604
|
server_url: Optional[str] = None,
|
|
621
605
|
timeout_ms: Optional[int] = None,
|
|
@@ -631,7 +615,6 @@ class UniswapV3(BaseSDK):
|
|
|
631
615
|
:param token_in: The symbol of a token in the pool
|
|
632
616
|
:param token_out: The symbol of a token in the pool
|
|
633
617
|
:param fee: The fee of the pool
|
|
634
|
-
:param block: Optional block number (defaults to latest).
|
|
635
618
|
:param retries: Override the default retry configuration for this method
|
|
636
619
|
:param server_url: Override the default server URL for this method
|
|
637
620
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -649,7 +632,6 @@ class UniswapV3(BaseSDK):
|
|
|
649
632
|
|
|
650
633
|
request = models.UniswapPoolPriceRequest(
|
|
651
634
|
chain=chain,
|
|
652
|
-
block=block,
|
|
653
635
|
token_in=token_in,
|
|
654
636
|
token_out=token_out,
|
|
655
637
|
fee=fee,
|
|
@@ -725,7 +707,6 @@ class UniswapV3(BaseSDK):
|
|
|
725
707
|
*,
|
|
726
708
|
chain: models.UniswapLiquidityProvisionInRangeChain = models.UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET,
|
|
727
709
|
token_id: int = 4318185,
|
|
728
|
-
block: OptionalNullable[int] = UNSET,
|
|
729
710
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
730
711
|
server_url: Optional[str] = None,
|
|
731
712
|
timeout_ms: Optional[int] = None,
|
|
@@ -744,7 +725,6 @@ class UniswapV3(BaseSDK):
|
|
|
744
725
|
|
|
745
726
|
:param chain: The chain to use.
|
|
746
727
|
:param token_id: Token ID of the NFT representing the liquidity provisioned position.
|
|
747
|
-
:param block: Optional block number (defaults to latest).
|
|
748
728
|
:param retries: Override the default retry configuration for this method
|
|
749
729
|
:param server_url: Override the default server URL for this method
|
|
750
730
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -762,7 +742,6 @@ class UniswapV3(BaseSDK):
|
|
|
762
742
|
|
|
763
743
|
request = models.UniswapLiquidityProvisionInRangeRequest(
|
|
764
744
|
chain=chain,
|
|
765
|
-
block=block,
|
|
766
745
|
token_id=token_id,
|
|
767
746
|
)
|
|
768
747
|
|
|
@@ -838,7 +817,6 @@ class UniswapV3(BaseSDK):
|
|
|
838
817
|
*,
|
|
839
818
|
chain: models.UniswapLiquidityProvisionInRangeChain = models.UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET,
|
|
840
819
|
token_id: int = 4318185,
|
|
841
|
-
block: OptionalNullable[int] = UNSET,
|
|
842
820
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
843
821
|
server_url: Optional[str] = None,
|
|
844
822
|
timeout_ms: Optional[int] = None,
|
|
@@ -857,7 +835,6 @@ class UniswapV3(BaseSDK):
|
|
|
857
835
|
|
|
858
836
|
:param chain: The chain to use.
|
|
859
837
|
:param token_id: Token ID of the NFT representing the liquidity provisioned position.
|
|
860
|
-
:param block: Optional block number (defaults to latest).
|
|
861
838
|
:param retries: Override the default retry configuration for this method
|
|
862
839
|
:param server_url: Override the default server URL for this method
|
|
863
840
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -875,7 +852,6 @@ class UniswapV3(BaseSDK):
|
|
|
875
852
|
|
|
876
853
|
request = models.UniswapLiquidityProvisionInRangeRequest(
|
|
877
854
|
chain=chain,
|
|
878
|
-
block=block,
|
|
879
855
|
token_id=token_id,
|
|
880
856
|
)
|
|
881
857
|
|
|
@@ -950,7 +926,6 @@ class UniswapV3(BaseSDK):
|
|
|
950
926
|
self,
|
|
951
927
|
*,
|
|
952
928
|
chain: models.UniswapLiquidityProvisionPositionsChain = models.UniswapLiquidityProvisionPositionsChain.ARBITRUM_MAINNET,
|
|
953
|
-
block: OptionalNullable[int] = UNSET,
|
|
954
929
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
955
930
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
956
931
|
server_url: Optional[str] = None,
|
|
@@ -968,7 +943,6 @@ class UniswapV3(BaseSDK):
|
|
|
968
943
|
activities effectively.
|
|
969
944
|
|
|
970
945
|
:param chain: The chain to use.
|
|
971
|
-
:param block: Optional block number (defaults to latest).
|
|
972
946
|
:param user: The user to get positions for.
|
|
973
947
|
:param retries: Override the default retry configuration for this method
|
|
974
948
|
:param server_url: Override the default server URL for this method
|
|
@@ -987,7 +961,6 @@ class UniswapV3(BaseSDK):
|
|
|
987
961
|
|
|
988
962
|
request = models.UniswapLiquidityProvisionPositionsRequest(
|
|
989
963
|
chain=chain,
|
|
990
|
-
block=block,
|
|
991
964
|
user=user,
|
|
992
965
|
)
|
|
993
966
|
|
|
@@ -1062,7 +1035,6 @@ class UniswapV3(BaseSDK):
|
|
|
1062
1035
|
self,
|
|
1063
1036
|
*,
|
|
1064
1037
|
chain: models.UniswapLiquidityProvisionPositionsChain = models.UniswapLiquidityProvisionPositionsChain.ARBITRUM_MAINNET,
|
|
1065
|
-
block: OptionalNullable[int] = UNSET,
|
|
1066
1038
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
1067
1039
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1068
1040
|
server_url: Optional[str] = None,
|
|
@@ -1080,7 +1052,6 @@ class UniswapV3(BaseSDK):
|
|
|
1080
1052
|
activities effectively.
|
|
1081
1053
|
|
|
1082
1054
|
:param chain: The chain to use.
|
|
1083
|
-
:param block: Optional block number (defaults to latest).
|
|
1084
1055
|
:param user: The user to get positions for.
|
|
1085
1056
|
:param retries: Override the default retry configuration for this method
|
|
1086
1057
|
:param server_url: Override the default server URL for this method
|
|
@@ -1099,7 +1070,6 @@ class UniswapV3(BaseSDK):
|
|
|
1099
1070
|
|
|
1100
1071
|
request = models.UniswapLiquidityProvisionPositionsRequest(
|
|
1101
1072
|
chain=chain,
|
|
1102
|
-
block=block,
|
|
1103
1073
|
user=user,
|
|
1104
1074
|
)
|
|
1105
1075
|
|