@compass-labs/api-sdk 2.2.77-rc.0 → 2.2.77-rc.1

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.
Files changed (115) hide show
  1. package/README.md +5 -3
  2. package/codeSamples_typescript.yaml +6 -0
  3. package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts +26 -0
  4. package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/creditCreditLoopedPositions.js +131 -0
  6. package/dist/commonjs/funcs/creditCreditLoopedPositions.js.map +1 -0
  7. package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts +26 -0
  8. package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts.map +1 -0
  9. package/dist/commonjs/models/components/creditloopedpositionsresponse.js +60 -0
  10. package/dist/commonjs/models/components/creditloopedpositionsresponse.js.map +1 -0
  11. package/dist/commonjs/models/components/index.d.ts +6 -0
  12. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/index.js +6 -0
  14. package/dist/commonjs/models/components/index.js.map +1 -1
  15. package/dist/commonjs/models/components/loopedposition.d.ts +88 -0
  16. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -0
  17. package/dist/commonjs/models/components/loopedposition.js +85 -0
  18. package/dist/commonjs/models/components/loopedposition.js.map +1 -0
  19. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +58 -0
  20. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts.map +1 -0
  21. package/dist/commonjs/models/components/loopedpositioncurrentstate.js +77 -0
  22. package/dist/commonjs/models/components/loopedpositioncurrentstate.js.map +1 -0
  23. package/dist/commonjs/models/components/loopedpositionhistoryentry.d.ts +71 -0
  24. package/dist/commonjs/models/components/loopedpositionhistoryentry.d.ts.map +1 -0
  25. package/dist/commonjs/models/components/loopedpositionhistoryentry.js +85 -0
  26. package/dist/commonjs/models/components/loopedpositionhistoryentry.js.map +1 -0
  27. package/dist/commonjs/models/components/loopedpositiontotals.d.ts +40 -0
  28. package/dist/commonjs/models/components/loopedpositiontotals.d.ts.map +1 -0
  29. package/dist/commonjs/models/components/loopedpositiontotals.js +67 -0
  30. package/dist/commonjs/models/components/loopedpositiontotals.js.map +1 -0
  31. package/dist/commonjs/models/components/swapinfo.d.ts +48 -0
  32. package/dist/commonjs/models/components/swapinfo.d.ts.map +1 -0
  33. package/dist/commonjs/models/components/swapinfo.js +66 -0
  34. package/dist/commonjs/models/components/swapinfo.js.map +1 -0
  35. package/dist/commonjs/models/operations/index.d.ts +1 -0
  36. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/index.js +1 -0
  38. package/dist/commonjs/models/operations/index.js.map +1 -1
  39. package/dist/commonjs/models/operations/v2creditloopedpositions.d.ts +28 -0
  40. package/dist/commonjs/models/operations/v2creditloopedpositions.d.ts.map +1 -0
  41. package/dist/commonjs/models/operations/v2creditloopedpositions.js +59 -0
  42. package/dist/commonjs/models/operations/v2creditloopedpositions.js.map +1 -0
  43. package/dist/commonjs/sdk/credit.d.ts +14 -0
  44. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  45. package/dist/commonjs/sdk/credit.js +17 -0
  46. package/dist/commonjs/sdk/credit.js.map +1 -1
  47. package/dist/esm/funcs/creditCreditLoopedPositions.d.ts +26 -0
  48. package/dist/esm/funcs/creditCreditLoopedPositions.d.ts.map +1 -0
  49. package/dist/esm/funcs/creditCreditLoopedPositions.js +95 -0
  50. package/dist/esm/funcs/creditCreditLoopedPositions.js.map +1 -0
  51. package/dist/esm/models/components/creditloopedpositionsresponse.d.ts +26 -0
  52. package/dist/esm/models/components/creditloopedpositionsresponse.d.ts.map +1 -0
  53. package/dist/esm/models/components/creditloopedpositionsresponse.js +23 -0
  54. package/dist/esm/models/components/creditloopedpositionsresponse.js.map +1 -0
  55. package/dist/esm/models/components/index.d.ts +6 -0
  56. package/dist/esm/models/components/index.d.ts.map +1 -1
  57. package/dist/esm/models/components/index.js +6 -0
  58. package/dist/esm/models/components/index.js.map +1 -1
  59. package/dist/esm/models/components/loopedposition.d.ts +88 -0
  60. package/dist/esm/models/components/loopedposition.d.ts.map +1 -0
  61. package/dist/esm/models/components/loopedposition.js +48 -0
  62. package/dist/esm/models/components/loopedposition.js.map +1 -0
  63. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +58 -0
  64. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts.map +1 -0
  65. package/dist/esm/models/components/loopedpositioncurrentstate.js +40 -0
  66. package/dist/esm/models/components/loopedpositioncurrentstate.js.map +1 -0
  67. package/dist/esm/models/components/loopedpositionhistoryentry.d.ts +71 -0
  68. package/dist/esm/models/components/loopedpositionhistoryentry.d.ts.map +1 -0
  69. package/dist/esm/models/components/loopedpositionhistoryentry.js +48 -0
  70. package/dist/esm/models/components/loopedpositionhistoryentry.js.map +1 -0
  71. package/dist/esm/models/components/loopedpositiontotals.d.ts +40 -0
  72. package/dist/esm/models/components/loopedpositiontotals.d.ts.map +1 -0
  73. package/dist/esm/models/components/loopedpositiontotals.js +30 -0
  74. package/dist/esm/models/components/loopedpositiontotals.js.map +1 -0
  75. package/dist/esm/models/components/swapinfo.d.ts +48 -0
  76. package/dist/esm/models/components/swapinfo.d.ts.map +1 -0
  77. package/dist/esm/models/components/swapinfo.js +29 -0
  78. package/dist/esm/models/components/swapinfo.js.map +1 -0
  79. package/dist/esm/models/operations/index.d.ts +1 -0
  80. package/dist/esm/models/operations/index.d.ts.map +1 -1
  81. package/dist/esm/models/operations/index.js +1 -0
  82. package/dist/esm/models/operations/index.js.map +1 -1
  83. package/dist/esm/models/operations/v2creditloopedpositions.d.ts +28 -0
  84. package/dist/esm/models/operations/v2creditloopedpositions.d.ts.map +1 -0
  85. package/dist/esm/models/operations/v2creditloopedpositions.js +22 -0
  86. package/dist/esm/models/operations/v2creditloopedpositions.js.map +1 -0
  87. package/dist/esm/sdk/credit.d.ts +14 -0
  88. package/dist/esm/sdk/credit.d.ts.map +1 -1
  89. package/dist/esm/sdk/credit.js +17 -0
  90. package/dist/esm/sdk/credit.js.map +1 -1
  91. package/docs/models/components/classification.md +17 -0
  92. package/docs/models/components/creditloopedpositionsresponse.md +30 -0
  93. package/docs/models/components/healthfactorscope.md +17 -0
  94. package/docs/models/components/loopedposition.md +46 -0
  95. package/docs/models/components/loopedpositioncurrentstate.md +28 -0
  96. package/docs/models/components/loopedpositionhistoryentry.md +33 -0
  97. package/docs/models/components/loopedpositionstatus.md +17 -0
  98. package/docs/models/components/loopedpositiontotals.md +31 -0
  99. package/docs/models/components/swapinfo.md +36 -0
  100. package/docs/models/operations/v2creditloopedpositionschain.md +15 -0
  101. package/docs/models/operations/v2creditloopedpositionsrequest.md +19 -0
  102. package/docs/sdks/credit/README.md +84 -0
  103. package/openapi_prepped_for_speakeasy.json +510 -0
  104. package/package.json +1 -1
  105. package/src/funcs/creditCreditLoopedPositions.ts +185 -0
  106. package/src/models/components/creditloopedpositionsresponse.ts +61 -0
  107. package/src/models/components/index.ts +6 -0
  108. package/src/models/components/loopedposition.ts +149 -0
  109. package/src/models/components/loopedpositioncurrentstate.ts +101 -0
  110. package/src/models/components/loopedpositionhistoryentry.ts +115 -0
  111. package/src/models/components/loopedpositiontotals.ts +78 -0
  112. package/src/models/components/swapinfo.ts +85 -0
  113. package/src/models/operations/index.ts +1 -0
  114. package/src/models/operations/v2creditloopedpositions.ts +56 -0
  115. package/src/sdk/credit.ts +25 -0
@@ -6011,6 +6011,69 @@
6011
6011
  "x-speakeasy-name-override": "credit_balances"
6012
6012
  }
6013
6013
  },
6014
+ "/v2/credit/looped_positions": {
6015
+ "get": {
6016
+ "tags": [
6017
+ "Credit"
6018
+ ],
6019
+ "summary": "List looped (leveraged) credit positions",
6020
+ "description": "List looped (leveraged) positions for a credit account owner.\n\nDetects loops from the account's on-chain history: a transaction containing\nlending + borrowing + swap legs is a loop transaction. Returns one position\nper Morpho market / Aave collateral+debt reserve pair, each with its complete\nper-transaction history, lifetime totals, and live on-chain state (health\nfactor, USD values, leverage) for open positions. Covers Aave V3 and Morpho\nBlue.",
6021
+ "operationId": "v2_credit_looped_positions",
6022
+ "parameters": [
6023
+ {
6024
+ "name": "chain",
6025
+ "in": "query",
6026
+ "required": true,
6027
+ "schema": {
6028
+ "type": "string",
6029
+ "enum": [
6030
+ "arbitrum",
6031
+ "base",
6032
+ "bsc",
6033
+ "ethereum",
6034
+ "tempo"
6035
+ ],
6036
+ "title": "Chain",
6037
+ "example": "base"
6038
+ }
6039
+ },
6040
+ {
6041
+ "name": "owner",
6042
+ "in": "query",
6043
+ "required": true,
6044
+ "schema": {
6045
+ "type": "string",
6046
+ "title": "Owner",
6047
+ "example": "0x06A9aF046187895AcFc7258450B15397CAc67400"
6048
+ },
6049
+ "description": "The address of the owner of the credit account to get looped positions for."
6050
+ }
6051
+ ],
6052
+ "responses": {
6053
+ "200": {
6054
+ "description": "Successful Response",
6055
+ "content": {
6056
+ "application/json": {
6057
+ "schema": {
6058
+ "$ref": "#/components/schemas/CreditLoopedPositionsResponse"
6059
+ }
6060
+ }
6061
+ }
6062
+ },
6063
+ "422": {
6064
+ "description": "Validation Error",
6065
+ "content": {
6066
+ "application/json": {
6067
+ "schema": {
6068
+ "$ref": "#/components/schemas/HTTPValidationError"
6069
+ }
6070
+ }
6071
+ }
6072
+ }
6073
+ },
6074
+ "x-speakeasy-name-override": "credit_looped_positions"
6075
+ }
6076
+ },
6014
6077
  "/v2/credit/euler_markets": {
6015
6078
  "get": {
6016
6079
  "tags": [
@@ -12991,6 +13054,41 @@
12991
13054
  "title": "CreditLoopResponse",
12992
13055
  "description": "The atomic loop transaction plus its guaranteed-floor preview."
12993
13056
  },
13057
+ "CreditLoopedPositionsResponse": {
13058
+ "properties": {
13059
+ "credit_account_address": {
13060
+ "type": "string",
13061
+ "title": "Credit Account Address",
13062
+ "description": "The credit product account address derived from the owner."
13063
+ },
13064
+ "positions": {
13065
+ "items": {
13066
+ "$ref": "#/components/schemas/LoopedPosition"
13067
+ },
13068
+ "type": "array",
13069
+ "title": "Positions",
13070
+ "description": "All looped positions, on both Aave and Morpho.",
13071
+ "example": []
13072
+ },
13073
+ "aave_account_summary": {
13074
+ "anyOf": [
13075
+ {
13076
+ "$ref": "#/components/schemas/AccountSummary"
13077
+ },
13078
+ {
13079
+ "type": "null"
13080
+ }
13081
+ ],
13082
+ "description": "Aave account-level summary (health factor, LTV, borrow capacity). Present when the account holds any open Aave looped position, since Aave collateral is pooled and health is account-level. Null for Morpho-only accounts."
13083
+ }
13084
+ },
13085
+ "type": "object",
13086
+ "required": [
13087
+ "credit_account_address"
13088
+ ],
13089
+ "title": "CreditLoopedPositionsResponse",
13090
+ "description": "Looped positions across Aave V3 and Morpho Blue for a credit account."
13091
+ },
12994
13092
  "CreditPositionsResponse": {
12995
13093
  "properties": {
12996
13094
  "collateral_positions": {
@@ -17053,6 +17151,360 @@
17053
17151
  "title": "LoopLegPreview",
17054
17152
  "description": "One planned loop iteration."
17055
17153
  },
17154
+ "LoopedPosition": {
17155
+ "properties": {
17156
+ "protocol": {
17157
+ "$ref": "#/components/schemas/CreditProtocol",
17158
+ "description": "Lending protocol this position is on (AAVE or MORPHO)."
17159
+ },
17160
+ "market_id": {
17161
+ "anyOf": [
17162
+ {
17163
+ "type": "string"
17164
+ },
17165
+ {
17166
+ "type": "null"
17167
+ }
17168
+ ],
17169
+ "title": "Market Id",
17170
+ "description": "Morpho only: the bytes32 id of the isolated market."
17171
+ },
17172
+ "collateral_token": {
17173
+ "type": "string",
17174
+ "title": "Collateral Token",
17175
+ "description": "Address of the collateral token."
17176
+ },
17177
+ "collateral_symbol": {
17178
+ "type": "string",
17179
+ "title": "Collateral Symbol",
17180
+ "description": "Symbol of the collateral token."
17181
+ },
17182
+ "debt_token": {
17183
+ "type": "string",
17184
+ "title": "Debt Token",
17185
+ "description": "Address of the debt token."
17186
+ },
17187
+ "debt_symbol": {
17188
+ "type": "string",
17189
+ "title": "Debt Symbol",
17190
+ "description": "Symbol of the debt token."
17191
+ },
17192
+ "status": {
17193
+ "type": "string",
17194
+ "enum": [
17195
+ "OPEN",
17196
+ "CLOSED"
17197
+ ],
17198
+ "title": "Status",
17199
+ "description": "Whether the position is currently open or fully closed."
17200
+ },
17201
+ "opened_at": {
17202
+ "type": "string",
17203
+ "format": "date-time",
17204
+ "title": "Opened At",
17205
+ "description": "Timestamp of the position's first transaction."
17206
+ },
17207
+ "closed_at": {
17208
+ "anyOf": [
17209
+ {
17210
+ "type": "string",
17211
+ "format": "date-time"
17212
+ },
17213
+ {
17214
+ "type": "null"
17215
+ }
17216
+ ],
17217
+ "title": "Closed At",
17218
+ "description": "Timestamp the position was fully closed; null while open."
17219
+ },
17220
+ "current": {
17221
+ "anyOf": [
17222
+ {
17223
+ "$ref": "#/components/schemas/LoopedPositionCurrentState"
17224
+ },
17225
+ {
17226
+ "type": "null"
17227
+ }
17228
+ ],
17229
+ "description": "Live on-chain state; null for CLOSED positions."
17230
+ },
17231
+ "totals": {
17232
+ "$ref": "#/components/schemas/LoopedPositionTotals",
17233
+ "description": "Lifetime totals across the position's history."
17234
+ },
17235
+ "history": {
17236
+ "items": {
17237
+ "$ref": "#/components/schemas/LoopedPositionHistoryEntry"
17238
+ },
17239
+ "type": "array",
17240
+ "title": "History",
17241
+ "description": "All transactions for this position, chronological.",
17242
+ "example": []
17243
+ }
17244
+ },
17245
+ "additionalProperties": false,
17246
+ "type": "object",
17247
+ "required": [
17248
+ "protocol",
17249
+ "collateral_token",
17250
+ "collateral_symbol",
17251
+ "debt_token",
17252
+ "debt_symbol",
17253
+ "status",
17254
+ "opened_at",
17255
+ "totals"
17256
+ ],
17257
+ "title": "LoopedPosition",
17258
+ "description": "A single looped (leveraged) position with its full history."
17259
+ },
17260
+ "LoopedPositionCurrentState": {
17261
+ "properties": {
17262
+ "collateral_amount": {
17263
+ "anyOf": [
17264
+ {
17265
+ "type": "string"
17266
+ },
17267
+ {
17268
+ "type": "null"
17269
+ }
17270
+ ],
17271
+ "title": "Collateral Amount",
17272
+ "description": "Current on-chain collateral amount for this position."
17273
+ },
17274
+ "debt_amount": {
17275
+ "anyOf": [
17276
+ {
17277
+ "type": "string"
17278
+ },
17279
+ {
17280
+ "type": "null"
17281
+ }
17282
+ ],
17283
+ "title": "Debt Amount",
17284
+ "description": "Current on-chain debt amount for this position."
17285
+ },
17286
+ "collateral_usd": {
17287
+ "anyOf": [
17288
+ {
17289
+ "type": "string"
17290
+ },
17291
+ {
17292
+ "type": "null"
17293
+ }
17294
+ ],
17295
+ "title": "Collateral Usd",
17296
+ "description": "Collateral value in USD (null if unpriced)."
17297
+ },
17298
+ "debt_usd": {
17299
+ "anyOf": [
17300
+ {
17301
+ "type": "string"
17302
+ },
17303
+ {
17304
+ "type": "null"
17305
+ }
17306
+ ],
17307
+ "title": "Debt Usd",
17308
+ "description": "Debt value in USD (null if unpriced)."
17309
+ },
17310
+ "net_usd_value": {
17311
+ "anyOf": [
17312
+ {
17313
+ "type": "string"
17314
+ },
17315
+ {
17316
+ "type": "null"
17317
+ }
17318
+ ],
17319
+ "title": "Net Usd Value",
17320
+ "description": "Net position value in USD (collateral - debt); null if unpriced."
17321
+ },
17322
+ "leverage": {
17323
+ "anyOf": [
17324
+ {
17325
+ "type": "string"
17326
+ },
17327
+ {
17328
+ "type": "null"
17329
+ }
17330
+ ],
17331
+ "title": "Leverage",
17332
+ "description": "Leverage multiplier: collateral_usd / (collateral_usd - debt_usd). Null when unpriced or net value is non-positive."
17333
+ },
17334
+ "health_factor": {
17335
+ "anyOf": [
17336
+ {
17337
+ "type": "string"
17338
+ },
17339
+ {
17340
+ "type": "null"
17341
+ }
17342
+ ],
17343
+ "title": "Health Factor",
17344
+ "description": "Health factor. Above 1 is safe; below 1 risks liquidation. See health_factor_scope for what it covers."
17345
+ },
17346
+ "health_factor_scope": {
17347
+ "type": "string",
17348
+ "enum": [
17349
+ "market",
17350
+ "account"
17351
+ ],
17352
+ "title": "Health Factor Scope",
17353
+ "description": "'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account \u2014 see aave_account_summary for the account-level figures."
17354
+ }
17355
+ },
17356
+ "additionalProperties": false,
17357
+ "type": "object",
17358
+ "required": [
17359
+ "collateral_amount",
17360
+ "debt_amount",
17361
+ "health_factor_scope"
17362
+ ],
17363
+ "title": "LoopedPositionCurrentState",
17364
+ "description": "Live on-chain state of an OPEN looped position."
17365
+ },
17366
+ "LoopedPositionHistoryEntry": {
17367
+ "properties": {
17368
+ "transaction_hash": {
17369
+ "type": "string",
17370
+ "title": "Transaction Hash",
17371
+ "description": "Transaction hash."
17372
+ },
17373
+ "block_number": {
17374
+ "type": "integer",
17375
+ "title": "Block Number",
17376
+ "description": "Block number of the transaction."
17377
+ },
17378
+ "block_timestamp": {
17379
+ "type": "string",
17380
+ "format": "date-time",
17381
+ "title": "Block Timestamp",
17382
+ "description": "Timestamp of the transaction."
17383
+ },
17384
+ "classification": {
17385
+ "type": "string",
17386
+ "enum": [
17387
+ "loop_open",
17388
+ "loop_increase",
17389
+ "unwind",
17390
+ "supply",
17391
+ "withdraw",
17392
+ "borrow",
17393
+ "repay",
17394
+ "liquidation",
17395
+ "mixed"
17396
+ ],
17397
+ "title": "Classification",
17398
+ "description": "What this transaction did to the position: loop_open / loop_increase (lever up with a swap), unwind (delever), single-sided supply/withdraw/borrow/repay, liquidation, or mixed."
17399
+ },
17400
+ "iterations": {
17401
+ "anyOf": [
17402
+ {
17403
+ "type": "integer"
17404
+ },
17405
+ {
17406
+ "type": "null"
17407
+ }
17408
+ ],
17409
+ "title": "Iterations",
17410
+ "description": "Loop transactions only: number of borrow legs in this transaction (one per loop iteration). Null for non-loop transactions."
17411
+ },
17412
+ "collateral_delta": {
17413
+ "type": "string",
17414
+ "title": "Collateral Delta",
17415
+ "description": "Signed change in collateral in this transaction (positive = added)."
17416
+ },
17417
+ "debt_delta": {
17418
+ "type": "string",
17419
+ "title": "Debt Delta",
17420
+ "description": "Signed change in debt in this transaction (positive = borrowed)."
17421
+ },
17422
+ "swap": {
17423
+ "anyOf": [
17424
+ {
17425
+ "$ref": "#/components/schemas/SwapInfo"
17426
+ },
17427
+ {
17428
+ "type": "null"
17429
+ }
17430
+ ],
17431
+ "description": "The swap leg detected in this transaction, if any."
17432
+ },
17433
+ "events": {
17434
+ "items": {
17435
+ "$ref": "#/components/schemas/CreditEvent"
17436
+ },
17437
+ "type": "array",
17438
+ "title": "Events",
17439
+ "description": "The raw lending events that make up this transaction (Morpho supply_collateral maps to 'supply', withdraw_collateral to 'withdraw').",
17440
+ "example": []
17441
+ }
17442
+ },
17443
+ "additionalProperties": false,
17444
+ "type": "object",
17445
+ "required": [
17446
+ "transaction_hash",
17447
+ "block_number",
17448
+ "block_timestamp",
17449
+ "classification",
17450
+ "collateral_delta",
17451
+ "debt_delta"
17452
+ ],
17453
+ "title": "LoopedPositionHistoryEntry",
17454
+ "description": "One transaction in a looped position's lifetime."
17455
+ },
17456
+ "LoopedPositionTotals": {
17457
+ "properties": {
17458
+ "total_collateral_added": {
17459
+ "type": "string",
17460
+ "title": "Total Collateral Added",
17461
+ "description": "Total collateral added over the position's lifetime."
17462
+ },
17463
+ "total_collateral_removed": {
17464
+ "type": "string",
17465
+ "title": "Total Collateral Removed",
17466
+ "description": "Total collateral removed over the position's lifetime."
17467
+ },
17468
+ "total_debt_added": {
17469
+ "type": "string",
17470
+ "title": "Total Debt Added",
17471
+ "description": "Total debt borrowed over the position's lifetime."
17472
+ },
17473
+ "total_debt_removed": {
17474
+ "type": "string",
17475
+ "title": "Total Debt Removed",
17476
+ "description": "Total debt repaid over the position's lifetime."
17477
+ },
17478
+ "loop_tx_count": {
17479
+ "type": "integer",
17480
+ "title": "Loop Tx Count",
17481
+ "description": "Number of loop_open + loop_increase transactions."
17482
+ },
17483
+ "unwind_tx_count": {
17484
+ "type": "integer",
17485
+ "title": "Unwind Tx Count",
17486
+ "description": "Number of unwind transactions."
17487
+ },
17488
+ "liquidation_count": {
17489
+ "type": "integer",
17490
+ "title": "Liquidation Count",
17491
+ "description": "Number of liquidation events."
17492
+ }
17493
+ },
17494
+ "additionalProperties": false,
17495
+ "type": "object",
17496
+ "required": [
17497
+ "total_collateral_added",
17498
+ "total_collateral_removed",
17499
+ "total_debt_added",
17500
+ "total_debt_removed",
17501
+ "loop_tx_count",
17502
+ "unwind_tx_count",
17503
+ "liquidation_count"
17504
+ ],
17505
+ "title": "LoopedPositionTotals",
17506
+ "description": "Lifetime totals across all of a looped position's transactions."
17507
+ },
17056
17508
  "LpBalance": {
17057
17509
  "properties": {
17058
17510
  "valuation": {
@@ -23225,6 +23677,64 @@
23225
23677
  ],
23226
23678
  "title": "SwapBorrowRate"
23227
23679
  },
23680
+ "SwapInfo": {
23681
+ "properties": {
23682
+ "sold_token": {
23683
+ "type": "string",
23684
+ "title": "Sold Token",
23685
+ "description": "Token sold in the swap (the borrowed/debt token)."
23686
+ },
23687
+ "sold_symbol": {
23688
+ "type": "string",
23689
+ "title": "Sold Symbol",
23690
+ "description": "Symbol of the sold token."
23691
+ },
23692
+ "sold_amount": {
23693
+ "type": "string",
23694
+ "title": "Sold Amount",
23695
+ "description": "Amount of the sold token."
23696
+ },
23697
+ "bought_token": {
23698
+ "type": "string",
23699
+ "title": "Bought Token",
23700
+ "description": "Token bought in the swap (the collateral token)."
23701
+ },
23702
+ "bought_symbol": {
23703
+ "type": "string",
23704
+ "title": "Bought Symbol",
23705
+ "description": "Symbol of the bought token."
23706
+ },
23707
+ "bought_amount": {
23708
+ "type": "string",
23709
+ "title": "Bought Amount",
23710
+ "description": "Amount of the bought token."
23711
+ },
23712
+ "router": {
23713
+ "anyOf": [
23714
+ {
23715
+ "type": "string"
23716
+ },
23717
+ {
23718
+ "type": "null"
23719
+ }
23720
+ ],
23721
+ "title": "Router",
23722
+ "description": "The outbound counterparty when it is the 1inch aggregation router. Null when the swap settled from an executor contract (informational only \u2014 never required to detect the swap)."
23723
+ }
23724
+ },
23725
+ "additionalProperties": false,
23726
+ "type": "object",
23727
+ "required": [
23728
+ "sold_token",
23729
+ "sold_symbol",
23730
+ "sold_amount",
23731
+ "bought_token",
23732
+ "bought_symbol",
23733
+ "bought_amount"
23734
+ ],
23735
+ "title": "SwapInfo",
23736
+ "description": "The DEX swap leg detected inside a loop transaction.\n\nEvidence is token-filtered and executor-proof: the sold (debt) token left the\naccount to a non-protocol counterparty and the bought (collateral) token\narrived from a non-protocol counterparty. 1inch fills often settle from an\nexecutor contract, so the router is recorded only when it happens to be the\noutbound counterparty \u2014 it is never required for detection."
23737
+ },
23228
23738
  "SyPosition": {
23229
23739
  "properties": {
23230
23740
  "syId": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.2.77-rc.0",
3
+ "version": "2.2.77-rc.1",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {