compass_api_sdk 0.6.1__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 (30) hide show
  1. compass_api_sdk/_version.py +2 -2
  2. compass_api_sdk/models/__init__.py +106 -22
  3. compass_api_sdk/models/{tokenbalance.py → compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py} +4 -2
  4. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_tokenbalance.py +18 -0
  5. compass_api_sdk/models/details.py +39 -0
  6. compass_api_sdk/models/increaseallowanceparams.py +20 -16
  7. compass_api_sdk/models/increaseallowancerequest.py +20 -16
  8. compass_api_sdk/models/lpbalance.py +20 -0
  9. compass_api_sdk/models/movement10percent.py +23 -0
  10. compass_api_sdk/models/multicallactiontype.py +0 -1
  11. compass_api_sdk/models/openposition.py +28 -0
  12. compass_api_sdk/models/pendle_marketop.py +1 -1
  13. compass_api_sdk/models/pendle_marketsop.py +73 -0
  14. compass_api_sdk/models/pendle_positionop.py +1 -1
  15. compass_api_sdk/models/pendle_positionsop.py +80 -0
  16. compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
  17. compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
  18. compass_api_sdk/models/pendlemarket.py +46 -0
  19. compass_api_sdk/models/portfolio.py +10 -3
  20. compass_api_sdk/models/position.py +41 -0
  21. compass_api_sdk/models/syposition.py +17 -0
  22. compass_api_sdk/models/useroperation.py +20 -26
  23. compass_api_sdk/models/yieldrange.py +16 -0
  24. compass_api_sdk/pendle.py +414 -4
  25. compass_api_sdk/universal.py +14 -8
  26. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.6.2.dist-info}/METADATA +4 -2
  27. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.6.2.dist-info}/RECORD +28 -17
  28. compass_api_sdk/models/contractname.py +0 -41
  29. compass_api_sdk/models/increaseallowanceanyparams.py +0 -58
  30. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.6.2.dist-info}/WHEEL +0 -0
compass_api_sdk/pendle.py CHANGED
@@ -13,7 +13,7 @@ class Pendle(BaseSDK):
13
13
  *,
14
14
  chain: models.PendlePositionChain = models.PendlePositionChain.ETHEREUM_MAINNET,
15
15
  user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
16
- market_address: str = "0xdace1121e10500e9e29d071f01593fd76b000f08",
16
+ market_address: str = "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
17
17
  block: OptionalNullable[int] = UNSET,
18
18
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
19
19
  server_url: Optional[str] = None,
@@ -121,7 +121,7 @@ class Pendle(BaseSDK):
121
121
  *,
122
122
  chain: models.PendlePositionChain = models.PendlePositionChain.ETHEREUM_MAINNET,
123
123
  user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
124
- market_address: str = "0xdace1121e10500e9e29d071f01593fd76b000f08",
124
+ market_address: str = "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
125
125
  block: OptionalNullable[int] = UNSET,
126
126
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
127
127
  server_url: Optional[str] = None,
@@ -224,12 +224,422 @@ class Pendle(BaseSDK):
224
224
  http_res,
225
225
  )
226
226
 
227
+ def positions(
228
+ self,
229
+ *,
230
+ chain: models.PendlePositionsChain = models.PendlePositionsChain.ETHEREUM_MAINNET,
231
+ user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
232
+ block: OptionalNullable[int] = UNSET,
233
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
234
+ server_url: Optional[str] = None,
235
+ timeout_ms: Optional[int] = None,
236
+ http_headers: Optional[Mapping[str, str]] = None,
237
+ ) -> models.PendleListUserPositionsResponse:
238
+ r"""List User's Market Positions
239
+
240
+ List the user's SY, PT, YT and LP positions for all markets on a given chain.
241
+
242
+ :param chain: The chain to use.
243
+ :param user_address: The user address of the desired position.
244
+ :param block: Optional block number (defaults to latest).
245
+ :param retries: Override the default retry configuration for this method
246
+ :param server_url: Override the default server URL for this method
247
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
248
+ :param http_headers: Additional headers to set or replace on requests.
249
+ """
250
+ base_url = None
251
+ url_variables = None
252
+ if timeout_ms is None:
253
+ timeout_ms = self.sdk_configuration.timeout_ms
254
+
255
+ if server_url is not None:
256
+ base_url = server_url
257
+ else:
258
+ base_url = self._get_url(base_url, url_variables)
259
+
260
+ request = models.PendlePositionsRequest(
261
+ chain=chain,
262
+ block=block,
263
+ user_address=user_address,
264
+ )
265
+
266
+ req = self._build_request(
267
+ method="GET",
268
+ path="/v0/pendle/positions",
269
+ base_url=base_url,
270
+ url_variables=url_variables,
271
+ request=request,
272
+ request_body_required=False,
273
+ request_has_path_params=False,
274
+ request_has_query_params=True,
275
+ user_agent_header="user-agent",
276
+ accept_header_value="application/json",
277
+ http_headers=http_headers,
278
+ security=self.sdk_configuration.security,
279
+ timeout_ms=timeout_ms,
280
+ )
281
+
282
+ if retries == UNSET:
283
+ if self.sdk_configuration.retry_config is not UNSET:
284
+ retries = self.sdk_configuration.retry_config
285
+
286
+ retry_config = None
287
+ if isinstance(retries, utils.RetryConfig):
288
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
289
+
290
+ http_res = self.do_request(
291
+ hook_ctx=HookContext(
292
+ base_url=base_url or "",
293
+ operation_id="pendle_positions",
294
+ oauth2_scopes=[],
295
+ security_source=self.sdk_configuration.security,
296
+ ),
297
+ request=req,
298
+ error_status_codes=["422", "4XX", "5XX"],
299
+ retry_config=retry_config,
300
+ )
301
+
302
+ response_data: Any = None
303
+ if utils.match_response(http_res, "200", "application/json"):
304
+ return utils.unmarshal_json(
305
+ http_res.text, models.PendleListUserPositionsResponse
306
+ )
307
+ if utils.match_response(http_res, "422", "application/json"):
308
+ response_data = utils.unmarshal_json(
309
+ http_res.text, errors.HTTPValidationErrorData
310
+ )
311
+ raise errors.HTTPValidationError(data=response_data)
312
+ if utils.match_response(http_res, "4XX", "*"):
313
+ http_res_text = utils.stream_to_text(http_res)
314
+ raise errors.APIError(
315
+ "API error occurred", http_res.status_code, http_res_text, http_res
316
+ )
317
+ if utils.match_response(http_res, "5XX", "*"):
318
+ http_res_text = utils.stream_to_text(http_res)
319
+ raise errors.APIError(
320
+ "API error occurred", http_res.status_code, http_res_text, http_res
321
+ )
322
+
323
+ content_type = http_res.headers.get("Content-Type")
324
+ http_res_text = utils.stream_to_text(http_res)
325
+ raise errors.APIError(
326
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
327
+ http_res.status_code,
328
+ http_res_text,
329
+ http_res,
330
+ )
331
+
332
+ async def positions_async(
333
+ self,
334
+ *,
335
+ chain: models.PendlePositionsChain = models.PendlePositionsChain.ETHEREUM_MAINNET,
336
+ user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
337
+ block: OptionalNullable[int] = UNSET,
338
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
339
+ server_url: Optional[str] = None,
340
+ timeout_ms: Optional[int] = None,
341
+ http_headers: Optional[Mapping[str, str]] = None,
342
+ ) -> models.PendleListUserPositionsResponse:
343
+ r"""List User's Market Positions
344
+
345
+ List the user's SY, PT, YT and LP positions for all markets on a given chain.
346
+
347
+ :param chain: The chain to use.
348
+ :param user_address: The user address of the desired position.
349
+ :param block: Optional block number (defaults to latest).
350
+ :param retries: Override the default retry configuration for this method
351
+ :param server_url: Override the default server URL for this method
352
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
353
+ :param http_headers: Additional headers to set or replace on requests.
354
+ """
355
+ base_url = None
356
+ url_variables = None
357
+ if timeout_ms is None:
358
+ timeout_ms = self.sdk_configuration.timeout_ms
359
+
360
+ if server_url is not None:
361
+ base_url = server_url
362
+ else:
363
+ base_url = self._get_url(base_url, url_variables)
364
+
365
+ request = models.PendlePositionsRequest(
366
+ chain=chain,
367
+ block=block,
368
+ user_address=user_address,
369
+ )
370
+
371
+ req = self._build_request_async(
372
+ method="GET",
373
+ path="/v0/pendle/positions",
374
+ base_url=base_url,
375
+ url_variables=url_variables,
376
+ request=request,
377
+ request_body_required=False,
378
+ request_has_path_params=False,
379
+ request_has_query_params=True,
380
+ user_agent_header="user-agent",
381
+ accept_header_value="application/json",
382
+ http_headers=http_headers,
383
+ security=self.sdk_configuration.security,
384
+ timeout_ms=timeout_ms,
385
+ )
386
+
387
+ if retries == UNSET:
388
+ if self.sdk_configuration.retry_config is not UNSET:
389
+ retries = self.sdk_configuration.retry_config
390
+
391
+ retry_config = None
392
+ if isinstance(retries, utils.RetryConfig):
393
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
394
+
395
+ http_res = await self.do_request_async(
396
+ hook_ctx=HookContext(
397
+ base_url=base_url or "",
398
+ operation_id="pendle_positions",
399
+ oauth2_scopes=[],
400
+ security_source=self.sdk_configuration.security,
401
+ ),
402
+ request=req,
403
+ error_status_codes=["422", "4XX", "5XX"],
404
+ retry_config=retry_config,
405
+ )
406
+
407
+ response_data: Any = None
408
+ if utils.match_response(http_res, "200", "application/json"):
409
+ return utils.unmarshal_json(
410
+ http_res.text, models.PendleListUserPositionsResponse
411
+ )
412
+ if utils.match_response(http_res, "422", "application/json"):
413
+ response_data = utils.unmarshal_json(
414
+ http_res.text, errors.HTTPValidationErrorData
415
+ )
416
+ raise errors.HTTPValidationError(data=response_data)
417
+ if utils.match_response(http_res, "4XX", "*"):
418
+ http_res_text = await utils.stream_to_text_async(http_res)
419
+ raise errors.APIError(
420
+ "API error occurred", http_res.status_code, http_res_text, http_res
421
+ )
422
+ if utils.match_response(http_res, "5XX", "*"):
423
+ http_res_text = await utils.stream_to_text_async(http_res)
424
+ raise errors.APIError(
425
+ "API error occurred", http_res.status_code, http_res_text, http_res
426
+ )
427
+
428
+ content_type = http_res.headers.get("Content-Type")
429
+ http_res_text = await utils.stream_to_text_async(http_res)
430
+ raise errors.APIError(
431
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
432
+ http_res.status_code,
433
+ http_res_text,
434
+ http_res,
435
+ )
436
+
437
+ def markets(
438
+ self,
439
+ *,
440
+ chain: models.PendleMarketsChain = models.PendleMarketsChain.ETHEREUM_MAINNET,
441
+ block: OptionalNullable[int] = UNSET,
442
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
443
+ server_url: Optional[str] = None,
444
+ timeout_ms: Optional[int] = None,
445
+ http_headers: Optional[Mapping[str, str]] = None,
446
+ ) -> models.PendleListMarketsResponse:
447
+ r"""List Market Data
448
+
449
+ Get a list of active markets.
450
+
451
+ :param chain: The chain to use.
452
+ :param block: Optional block number (defaults to latest).
453
+ :param retries: Override the default retry configuration for this method
454
+ :param server_url: Override the default server URL for this method
455
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
456
+ :param http_headers: Additional headers to set or replace on requests.
457
+ """
458
+ base_url = None
459
+ url_variables = None
460
+ if timeout_ms is None:
461
+ timeout_ms = self.sdk_configuration.timeout_ms
462
+
463
+ if server_url is not None:
464
+ base_url = server_url
465
+ else:
466
+ base_url = self._get_url(base_url, url_variables)
467
+
468
+ request = models.PendleMarketsRequest(
469
+ chain=chain,
470
+ block=block,
471
+ )
472
+
473
+ req = self._build_request(
474
+ method="GET",
475
+ path="/v0/pendle/markets",
476
+ base_url=base_url,
477
+ url_variables=url_variables,
478
+ request=request,
479
+ request_body_required=False,
480
+ request_has_path_params=False,
481
+ request_has_query_params=True,
482
+ user_agent_header="user-agent",
483
+ accept_header_value="application/json",
484
+ http_headers=http_headers,
485
+ security=self.sdk_configuration.security,
486
+ timeout_ms=timeout_ms,
487
+ )
488
+
489
+ if retries == UNSET:
490
+ if self.sdk_configuration.retry_config is not UNSET:
491
+ retries = self.sdk_configuration.retry_config
492
+
493
+ retry_config = None
494
+ if isinstance(retries, utils.RetryConfig):
495
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
496
+
497
+ http_res = self.do_request(
498
+ hook_ctx=HookContext(
499
+ base_url=base_url or "",
500
+ operation_id="pendle_markets",
501
+ oauth2_scopes=[],
502
+ security_source=self.sdk_configuration.security,
503
+ ),
504
+ request=req,
505
+ error_status_codes=["422", "4XX", "5XX"],
506
+ retry_config=retry_config,
507
+ )
508
+
509
+ response_data: Any = None
510
+ if utils.match_response(http_res, "200", "application/json"):
511
+ return utils.unmarshal_json(http_res.text, models.PendleListMarketsResponse)
512
+ if utils.match_response(http_res, "422", "application/json"):
513
+ response_data = utils.unmarshal_json(
514
+ http_res.text, errors.HTTPValidationErrorData
515
+ )
516
+ raise errors.HTTPValidationError(data=response_data)
517
+ if utils.match_response(http_res, "4XX", "*"):
518
+ http_res_text = utils.stream_to_text(http_res)
519
+ raise errors.APIError(
520
+ "API error occurred", http_res.status_code, http_res_text, http_res
521
+ )
522
+ if utils.match_response(http_res, "5XX", "*"):
523
+ http_res_text = utils.stream_to_text(http_res)
524
+ raise errors.APIError(
525
+ "API error occurred", http_res.status_code, http_res_text, http_res
526
+ )
527
+
528
+ content_type = http_res.headers.get("Content-Type")
529
+ http_res_text = utils.stream_to_text(http_res)
530
+ raise errors.APIError(
531
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
532
+ http_res.status_code,
533
+ http_res_text,
534
+ http_res,
535
+ )
536
+
537
+ async def markets_async(
538
+ self,
539
+ *,
540
+ chain: models.PendleMarketsChain = models.PendleMarketsChain.ETHEREUM_MAINNET,
541
+ block: OptionalNullable[int] = UNSET,
542
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
543
+ server_url: Optional[str] = None,
544
+ timeout_ms: Optional[int] = None,
545
+ http_headers: Optional[Mapping[str, str]] = None,
546
+ ) -> models.PendleListMarketsResponse:
547
+ r"""List Market Data
548
+
549
+ Get a list of active markets.
550
+
551
+ :param chain: The chain to use.
552
+ :param block: Optional block number (defaults to latest).
553
+ :param retries: Override the default retry configuration for this method
554
+ :param server_url: Override the default server URL for this method
555
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
556
+ :param http_headers: Additional headers to set or replace on requests.
557
+ """
558
+ base_url = None
559
+ url_variables = None
560
+ if timeout_ms is None:
561
+ timeout_ms = self.sdk_configuration.timeout_ms
562
+
563
+ if server_url is not None:
564
+ base_url = server_url
565
+ else:
566
+ base_url = self._get_url(base_url, url_variables)
567
+
568
+ request = models.PendleMarketsRequest(
569
+ chain=chain,
570
+ block=block,
571
+ )
572
+
573
+ req = self._build_request_async(
574
+ method="GET",
575
+ path="/v0/pendle/markets",
576
+ base_url=base_url,
577
+ url_variables=url_variables,
578
+ request=request,
579
+ request_body_required=False,
580
+ request_has_path_params=False,
581
+ request_has_query_params=True,
582
+ user_agent_header="user-agent",
583
+ accept_header_value="application/json",
584
+ http_headers=http_headers,
585
+ security=self.sdk_configuration.security,
586
+ timeout_ms=timeout_ms,
587
+ )
588
+
589
+ if retries == UNSET:
590
+ if self.sdk_configuration.retry_config is not UNSET:
591
+ retries = self.sdk_configuration.retry_config
592
+
593
+ retry_config = None
594
+ if isinstance(retries, utils.RetryConfig):
595
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
596
+
597
+ http_res = await self.do_request_async(
598
+ hook_ctx=HookContext(
599
+ base_url=base_url or "",
600
+ operation_id="pendle_markets",
601
+ oauth2_scopes=[],
602
+ security_source=self.sdk_configuration.security,
603
+ ),
604
+ request=req,
605
+ error_status_codes=["422", "4XX", "5XX"],
606
+ retry_config=retry_config,
607
+ )
608
+
609
+ response_data: Any = None
610
+ if utils.match_response(http_res, "200", "application/json"):
611
+ return utils.unmarshal_json(http_res.text, models.PendleListMarketsResponse)
612
+ if utils.match_response(http_res, "422", "application/json"):
613
+ response_data = utils.unmarshal_json(
614
+ http_res.text, errors.HTTPValidationErrorData
615
+ )
616
+ raise errors.HTTPValidationError(data=response_data)
617
+ if utils.match_response(http_res, "4XX", "*"):
618
+ http_res_text = await utils.stream_to_text_async(http_res)
619
+ raise errors.APIError(
620
+ "API error occurred", http_res.status_code, http_res_text, http_res
621
+ )
622
+ if utils.match_response(http_res, "5XX", "*"):
623
+ http_res_text = await utils.stream_to_text_async(http_res)
624
+ raise errors.APIError(
625
+ "API error occurred", http_res.status_code, http_res_text, http_res
626
+ )
627
+
628
+ content_type = http_res.headers.get("Content-Type")
629
+ http_res_text = await utils.stream_to_text_async(http_res)
630
+ raise errors.APIError(
631
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
632
+ http_res.status_code,
633
+ http_res_text,
634
+ http_res,
635
+ )
636
+
227
637
  def market(
228
638
  self,
229
639
  *,
230
640
  chain: models.PendleMarketChain = models.PendleMarketChain.ETHEREUM_MAINNET,
231
641
  user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
232
- market_address: str = "0xdace1121e10500e9e29d071f01593fd76b000f08",
642
+ market_address: str = "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
233
643
  block: OptionalNullable[int] = UNSET,
234
644
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
235
645
  server_url: Optional[str] = None,
@@ -335,7 +745,7 @@ class Pendle(BaseSDK):
335
745
  *,
336
746
  chain: models.PendleMarketChain = models.PendleMarketChain.ETHEREUM_MAINNET,
337
747
  user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
338
- market_address: str = "0xdace1121e10500e9e29d071f01593fd76b000f08",
748
+ market_address: str = "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
339
749
  block: OptionalNullable[int] = UNSET,
340
750
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
341
751
  server_url: Optional[str] = None,
@@ -1515,7 +1515,10 @@ class Universal(BaseSDK):
1515
1515
  def allowance_set(
1516
1516
  self,
1517
1517
  *,
1518
- token: models.TokenEnum,
1518
+ token: Union[
1519
+ models.IncreaseAllowanceRequestToken,
1520
+ models.IncreaseAllowanceRequestTokenTypedDict,
1521
+ ],
1519
1522
  contract_name: models.IncreaseAllowanceRequestContractName,
1520
1523
  amount: Union[
1521
1524
  models.IncreaseAllowanceRequestAmount,
@@ -1528,7 +1531,7 @@ class Universal(BaseSDK):
1528
1531
  timeout_ms: Optional[int] = None,
1529
1532
  http_headers: Optional[Mapping[str, str]] = None,
1530
1533
  ) -> models.TxResponse:
1531
- r"""Set Allowance - Protocol
1534
+ r"""Set Allowance (symbol)
1532
1535
 
1533
1536
  This endpoint allows users to modify the token allowance for a specific protocol.
1534
1537
 
@@ -1538,9 +1541,9 @@ class Universal(BaseSDK):
1538
1541
  tokens securely and efficiently, enabling seamless transactions and operations
1539
1542
  within the DeFi ecosystem.
1540
1543
 
1541
- :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..
1542
1545
  :param contract_name: The name of the contract to increase allowance for.
1543
- :param amount: The amount of tokens to increase the allowance by.
1546
+ :param amount: The amount to increase the allowance to.
1544
1547
  :param chain: The chain to use.
1545
1548
  :param sender: The address of the transaction sender.
1546
1549
  :param retries: Override the default retry configuration for this method
@@ -1636,7 +1639,10 @@ class Universal(BaseSDK):
1636
1639
  async def allowance_set_async(
1637
1640
  self,
1638
1641
  *,
1639
- token: models.TokenEnum,
1642
+ token: Union[
1643
+ models.IncreaseAllowanceRequestToken,
1644
+ models.IncreaseAllowanceRequestTokenTypedDict,
1645
+ ],
1640
1646
  contract_name: models.IncreaseAllowanceRequestContractName,
1641
1647
  amount: Union[
1642
1648
  models.IncreaseAllowanceRequestAmount,
@@ -1649,7 +1655,7 @@ class Universal(BaseSDK):
1649
1655
  timeout_ms: Optional[int] = None,
1650
1656
  http_headers: Optional[Mapping[str, str]] = None,
1651
1657
  ) -> models.TxResponse:
1652
- r"""Set Allowance - Protocol
1658
+ r"""Set Allowance (symbol)
1653
1659
 
1654
1660
  This endpoint allows users to modify the token allowance for a specific protocol.
1655
1661
 
@@ -1659,9 +1665,9 @@ class Universal(BaseSDK):
1659
1665
  tokens securely and efficiently, enabling seamless transactions and operations
1660
1666
  within the DeFi ecosystem.
1661
1667
 
1662
- :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..
1663
1669
  :param contract_name: The name of the contract to increase allowance for.
1664
- :param amount: The amount of tokens to increase the allowance by.
1670
+ :param amount: The amount to increase the allowance to.
1665
1671
  :param chain: The chain to use.
1666
1672
  :param sender: The address of the transaction sender.
1667
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.1
3
+ Version: 0.6.2
4
4
  Summary: Compass API SDK.
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9.2
@@ -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] -->