@gmx-io/sdk 2.9.2 → 2.9.3

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.
@@ -0,0 +1,3171 @@
1
+ {
2
+ "provenance": [
3
+ {
4
+ "file": "gmtrade-market-views-2026-10-26.json",
5
+ "capturedAt": "2026-10-26T10:49:56.140Z",
6
+ "source": "mainnet Market accounts with the store program's get_market_status and get_market_token_price simulated at their slot (8af1e70c), Arbitrum keeper prices through the mint table, and @gmsol-labs/gmsol-sdk 0.9.0-test.2 MarketStatus funding at the same clock; the two 'at index price' entries run the views at a shifted index price so the trader pnl cap binds",
7
+ "sha256": "87191ee64ae68ebf435e7c40db679bc95e82a80a2c1f89d93dc2307e42519aef"
8
+ },
9
+ {
10
+ "file": "gmtrade-markets-2026-10-06.json",
11
+ "capturedAt": "2026-10-06T20:14:45.491Z",
12
+ "source": "mainnet Market accounts, GMTrade keeper prices and @gmsol-labs/gmsol-sdk 0.9.0 MarketStatus at one second",
13
+ "sha256": "6832c2ce69376a56b566567dbe5d70eef8bae3e2d06eca9b34d266bcd94e656e"
14
+ },
15
+ {
16
+ "file": "gmsol-positions-2026-10-30.json",
17
+ "capturedAt": "2026-10-30T14:16:17Z",
18
+ "source": "mainnet Position accounts of store CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN with their Market accounts at slot 463315483 and the Clock of that slot (program at 8af1e70c), picked to cover the cases named in picked; each owner is replaced by a dummy key and the bump and address re-derived from it; the synthetic entries are copies with a 1e36 size, which makes each unit of an amount per size worth 1e6 token units; prices are Arbitrum keeper tickers through the mint table; expected values come from gmsol at 8af1e70c: the Position read with its declare_program type, the address from Pubkey::find_program_address, and pending_borrowing_fee_value and pending_funding_fees of a PositionModel on the market advanced to the Clock time as update_fees_state does (borrowing, then funding)",
19
+ "sha256": "40be0ca443f387a21badfbaafac715294a09862f3cc7aa13fcd8974e414bf9fd"
20
+ },
21
+ {
22
+ "file": "gmsol-accounts-2026-10-27.json",
23
+ "capturedAt": "2026-10-27T14:55:12Z",
24
+ "source": "mainnet Order, UserHeader and Store accounts of store CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN at slot 462111896 (program at 8af1e70c), one order per kind and action state plus the edge cases named in picked; wallet-derived keys are replaced by dummy keys, and the last order is a synthetic copy with a u128::MAX size; expected values come from gmsol-programs at 8af1e70c (its declare_program types and Store::order_fee_discount_factor)",
25
+ "sha256": "7ad2ade76b7cced4e4fd726600ce5b0700731270586cc0c15027926244fe4f79"
26
+ }
27
+ ],
28
+ "marketViews": [
29
+ {
30
+ "name": "SOL/USD[USDC-USDC]",
31
+ "now": 1793011789,
32
+ "supply": "648352230814777",
33
+ "market": {
34
+ "name": "SOL/USD[USDC-USDC]",
35
+ "marketTokenMint": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
36
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
37
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
38
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
39
+ "skipBorrowingFeeForSmallerSide": true,
40
+ "ignoreOpenInterestForUsageFactor": false,
41
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
42
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
43
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
44
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
45
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
46
+ "maxOpenInterest": ["2499999999999999895779934208", "2499999999999999895779934208"],
47
+ "funding": {
48
+ "exponent": "100000000000000000000",
49
+ "factor": "2000000000000",
50
+ "maxFactorPerSecond": "2378234398782",
51
+ "minFactorPerSecond": "31709791983",
52
+ "increaseFactorPerSecond": "220206888",
53
+ "decreaseFactorPerSecond": "0",
54
+ "thresholdForStableFunding": "4000000000000000000",
55
+ "thresholdForDecreaseFunding": "0"
56
+ },
57
+ "primary": ["423056432740", "423056432739"],
58
+ "openInterest": ["83203529794206595988851319", "79265418698718423065042235"],
59
+ "openInterestInTokens": ["8364881010478", "7787837157685"],
60
+ "openInterestByCollateral": [
61
+ ["41601764897103297994425660", "41601764897103297994425659"],
62
+ ["39632709349359211532521118", "39632709349359211532521117"]
63
+ ],
64
+ "positionImpactPoolAmount": "2996382850",
65
+ "borrowingFactor": ["8821419818221774959", "11013038768087430844"],
66
+ "fundingFeeAmountPerSize": [
67
+ ["8587725196030875", "8587725196030875"],
68
+ ["160003213057450141", "160003213057450141"]
69
+ ],
70
+ "claimableFundingAmountPerSize": [
71
+ ["168123756556196818", "168123756556196818"],
72
+ ["87867495328905099", "87867495328905099"]
73
+ ],
74
+ "totalBorrowing": ["7259940065886044027334570", "8686916679346278156262396"],
75
+ "priceImpactDistributionClock": 1793011528,
76
+ "borrowingClock": 1793011528,
77
+ "fundingClock": 1793011528,
78
+ "fundingFactorPerSecond": "248461082755",
79
+ "config": {
80
+ "openInterestReserveFactor": "450000000000000000000",
81
+ "reserveFactor": "455000000000000000000",
82
+ "borrowingFeeReceiverFactor": "99000000000000000000",
83
+ "positionImpactDistributeFactor": "353982000000000000000000000",
84
+ "minPositionImpactPoolAmount": "3000000000",
85
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
86
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
87
+ "maxPnlFactorForLongWithdrawal": "69999999999999991808",
88
+ "maxPnlFactorForShortWithdrawal": "69999999999999991808",
89
+ "maxPnlFactorForLongTrader": "90000000000000000000",
90
+ "maxPnlFactorForShortTrader": "90000000000000000000"
91
+ }
92
+ },
93
+ "prices": {
94
+ "index": {
95
+ "min": "10138376487914",
96
+ "max": "10139203734193"
97
+ },
98
+ "long": {
99
+ "min": "99972250905178",
100
+ "max": "99972250905178"
101
+ },
102
+ "short": {
103
+ "min": "99972250905178",
104
+ "max": "99972250905178"
105
+ }
106
+ },
107
+ "status": [
108
+ {
109
+ "maximize": true,
110
+ "storedFundingFactor": "248461082755",
111
+ "borrowing": ["635885961002", "0"],
112
+ "pnl": ["1609702983312056771022935", "309393567541824550323145"],
113
+ "reserved": ["84813232777518652759874254", "79265418698718423065042235"],
114
+ "poolWithoutPnl": ["42293903840932840674727720", "42293903840832868423822542"]
115
+ },
116
+ {
117
+ "maximize": false,
118
+ "storedFundingFactor": "248461082755",
119
+ "borrowing": ["635885961002", "0"],
120
+ "pnl": ["1602783166621861085511573", "302951108231671697819030"],
121
+ "reserved": ["84813232777518652759874254", "79265418698718423065042235"],
122
+ "poolWithoutPnl": ["42293903840932840674727720", "42293903840832868423822542"]
123
+ }
124
+ ],
125
+ "pricesExpected": [
126
+ "127481508467442638180",
127
+ "127460895050673613845",
128
+ "127481508467442638180",
129
+ "127460895050673613845"
130
+ ],
131
+ "sdkNextFunding": {
132
+ "long": "248461082755",
133
+ "short": "-260805272224"
134
+ }
135
+ },
136
+ {
137
+ "name": "SOL/USD[WSOL-USDC]",
138
+ "now": 1793011779,
139
+ "supply": "53179868942778",
140
+ "market": {
141
+ "name": "SOL/USD[WSOL-USDC]",
142
+ "marketTokenMint": "BwN2FWixP5JyKjJNyD1YcRKN1XhgvFtnzrPrkfyb4DkW",
143
+ "longTokenMint": "So11111111111111111111111111111111111111112",
144
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
145
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
146
+ "skipBorrowingFeeForSmallerSide": true,
147
+ "ignoreOpenInterestForUsageFactor": false,
148
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
149
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
150
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
151
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
152
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
153
+ "maxOpenInterest": ["2000000000000000000000000000", "2000000000000000000000000000"],
154
+ "funding": {
155
+ "exponent": "100000000000000000000",
156
+ "factor": "2000000000000",
157
+ "maxFactorPerSecond": "2378234398782",
158
+ "minFactorPerSecond": "31709791983",
159
+ "increaseFactorPerSecond": "220205981",
160
+ "decreaseFactorPerSecond": "0",
161
+ "thresholdForStableFunding": "4000000000000000000",
162
+ "thresholdForDecreaseFunding": "0"
163
+ },
164
+ "primary": ["554466581056", "53575871386"],
165
+ "openInterest": ["2173518527215166950597194", "2709882552697636733065024"],
166
+ "openInterestInTokens": ["218639871045", "262828424739"],
167
+ "openInterestByCollateral": [
168
+ ["41277637337703460000000", "2132240889877463490597194"],
169
+ ["173018618068970174586876", "2536863934628666558478148"]
170
+ ],
171
+ "positionImpactPoolAmount": "1999643582",
172
+ "borrowingFactor": ["12156545655261597798", "12822915384001734453"],
173
+ "fundingFeeAmountPerSize": [
174
+ ["32292833036212241", "4336147670045300"],
175
+ ["51488235460966273", "5210651742585245"]
176
+ ],
177
+ "claimableFundingAmountPerSize": [
178
+ ["43594002183893008", "3630711591549523"],
179
+ ["23395038490237259", "3082214395501735"]
180
+ ],
181
+ "totalBorrowing": ["261374848473708297020821", "328786828637042592006695"],
182
+ "priceImpactDistributionClock": 1792986394,
183
+ "borrowingClock": 1792986394,
184
+ "fundingClock": 1792986394,
185
+ "fundingFactorPerSecond": "449873279661",
186
+ "config": {
187
+ "openInterestReserveFactor": "375000000000000000000",
188
+ "reserveFactor": "380000000000000000000",
189
+ "borrowingFeeReceiverFactor": "99000000000000000000",
190
+ "positionImpactDistributeFactor": "300000000000000000000000000",
191
+ "minPositionImpactPoolAmount": "2000000000",
192
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
193
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
194
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
195
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
196
+ "maxPnlFactorForLongTrader": "90000000000000000000",
197
+ "maxPnlFactorForShortTrader": "90000000000000000000"
198
+ }
199
+ },
200
+ "prices": {
201
+ "index": {
202
+ "min": "10138376487914",
203
+ "max": "10139203734193"
204
+ },
205
+ "long": {
206
+ "min": "10138376487914",
207
+ "max": "10139203734193"
208
+ },
209
+ "short": {
210
+ "min": "99972250905178",
211
+ "max": "99972250905178"
212
+ }
213
+ },
214
+ "status": [
215
+ {
216
+ "maximize": true,
217
+ "storedFundingFactor": "449873279661",
218
+ "borrowing": ["0", "192520239846"],
219
+ "pnl": ["43315669727773026544491", "45229030968284840960578"],
220
+ "reserved": ["2216834196942939977141685", "2709882552697636733065024"],
221
+ "poolWithoutPnl": ["5621849629128220913247808", "5356100456664738609436708"]
222
+ },
223
+ {
224
+ "maximize": false,
225
+ "storedFundingFactor": "449873279661",
226
+ "borrowing": ["0", "192520239846"],
227
+ "pnl": ["43134800708010010452936", "45011607131904071664397"],
228
+ "reserved": ["2216834196942939977141685", "2709882552697636733065024"],
229
+ "poolWithoutPnl": ["5621390948712212485357184", "5356100456664738609436708"]
230
+ }
231
+ ],
232
+ "pricesExpected": [
233
+ "204395903362304198952",
234
+ "204379757638613367002",
235
+ "204395903362304198952",
236
+ "204379757638613367002"
237
+ ],
238
+ "sdkNextFunding": {
239
+ "long": "-204584825519",
240
+ "short": "164091579619"
241
+ }
242
+ },
243
+ {
244
+ "name": "BTC/USD[WBTC-USDC]",
245
+ "now": 1793011786,
246
+ "supply": "7249851752815",
247
+ "market": {
248
+ "name": "BTC/USD[WBTC-USDC]",
249
+ "marketTokenMint": "7RNev94wKusSmFEqo3gvv1d1zMweP6sa2LtjJjroAvym",
250
+ "longTokenMint": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",
251
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
252
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
253
+ "skipBorrowingFeeForSmallerSide": true,
254
+ "ignoreOpenInterestForUsageFactor": false,
255
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
256
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
257
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
258
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
259
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
260
+ "maxOpenInterest": ["2000000000000000000000000000", "2000000000000000000000000000"],
261
+ "funding": {
262
+ "exponent": "100000000000000000000",
263
+ "factor": "2000000000000",
264
+ "maxFactorPerSecond": "2378234398782",
265
+ "minFactorPerSecond": "31709791983",
266
+ "increaseFactorPerSecond": "220206888",
267
+ "decreaseFactorPerSecond": "0",
268
+ "thresholdForStableFunding": "4000000000000000000",
269
+ "thresholdForDecreaseFunding": "0"
270
+ },
271
+ "primary": ["798917", "15179217708"],
272
+ "openInterest": ["158483860715021173694717", "150689008887873877809710"],
273
+ "openInterestInTokens": ["2443680", "1864623"],
274
+ "openInterestByCollateral": [
275
+ ["0", "158483860715021173694717"],
276
+ ["605078092498103117960", "150083930795375774691750"]
277
+ ],
278
+ "positionImpactPoolAmount": "399604",
279
+ "borrowingFactor": ["10942058065405269926", "6421796328955645343"],
280
+ "fundingFeeAmountPerSize": [
281
+ ["5596205806064", "4190102952231174"],
282
+ ["2266603759910", "4291917859653254"]
283
+ ],
284
+ "claimableFundingAmountPerSize": [
285
+ ["693078442618", "143691113415207338"],
286
+ ["84556026267534", "31482592740517732"]
287
+ ],
288
+ "totalBorrowing": ["13602146619296023854498", "9653406681787749890808"],
289
+ "priceImpactDistributionClock": 1792939908,
290
+ "borrowingClock": 1792939908,
291
+ "fundingClock": 1792939908,
292
+ "fundingFactorPerSecond": "327108310494",
293
+ "config": {
294
+ "openInterestReserveFactor": "520000000000000000000",
295
+ "reserveFactor": "525000000000000000000",
296
+ "borrowingFeeReceiverFactor": "99000000000000000000",
297
+ "positionImpactDistributeFactor": "2400000000000000000000",
298
+ "minPositionImpactPoolAmount": "400000",
299
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
300
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
301
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
302
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
303
+ "maxPnlFactorForLongTrader": "90000000000000000000",
304
+ "maxPnlFactorForShortTrader": "90000000000000000000"
305
+ }
306
+ },
307
+ "prices": {
308
+ "index": {
309
+ "min": "80288029697782460",
310
+ "max": "80288029697782460"
311
+ },
312
+ "long": {
313
+ "min": "80288029697782460",
314
+ "max": "80288029697782460"
315
+ },
316
+ "short": {
317
+ "min": "99972250905178",
318
+ "max": "99972250905178"
319
+ }
320
+ },
321
+ "status": [
322
+ {
323
+ "maximize": true,
324
+ "storedFundingFactor": "327108310494",
325
+ "borrowing": ["839354136568", "0"],
326
+ "pnl": ["37714391696855868158083", "982102088705653897130"],
327
+ "reserved": ["196198252411877041852800", "150689008887873877809710"],
328
+ "poolWithoutPnl": ["64143471822063269595820", "1517500561248496926492024"]
329
+ },
330
+ {
331
+ "maximize": false,
332
+ "storedFundingFactor": "327108310494",
333
+ "borrowing": ["839354136568", "0"],
334
+ "pnl": ["37714391696855868158083", "982102088705653897130"],
335
+ "reserved": ["196198252411877041852800", "150689008887873877809710"],
336
+ "poolWithoutPnl": ["64143471822063269595820", "1517500561248496926492024"]
337
+ }
338
+ ],
339
+ "pricesExpected": [
340
+ "208404634600912212681",
341
+ "208404634600912212681",
342
+ "208404634600912212681",
343
+ "208404634600912212681"
344
+ ],
345
+ "sdkNextFunding": {
346
+ "long": "327108310494",
347
+ "short": "-344028992569"
348
+ }
349
+ },
350
+ {
351
+ "name": "HYPE/USD[USDC-USDC]",
352
+ "now": 1793011779,
353
+ "supply": "2878654820969",
354
+ "market": {
355
+ "name": "HYPE/USD[USDC-USDC]",
356
+ "marketTokenMint": "4GmYJA45W11rQYsWcq3CHvASY199wTQz2LFj8tQBqqWC",
357
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
358
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
359
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
360
+ "skipBorrowingFeeForSmallerSide": true,
361
+ "ignoreOpenInterestForUsageFactor": false,
362
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
363
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
364
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
365
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
366
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
367
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
368
+ "funding": {
369
+ "exponent": "100000000000000000000",
370
+ "factor": "2000000000000",
371
+ "maxFactorPerSecond": "2853881278539",
372
+ "minFactorPerSecond": "31709791984",
373
+ "increaseFactorPerSecond": "264248267",
374
+ "decreaseFactorPerSecond": "0",
375
+ "thresholdForStableFunding": "4000000000000000000",
376
+ "thresholdForDecreaseFunding": "0"
377
+ },
378
+ "primary": ["1510409805", "1510409805"],
379
+ "openInterest": ["250064912515796016162120", "288151274950076521706800"],
380
+ "openInterestInTokens": ["31916547508", "35453000873"],
381
+ "openInterestByCollateral": [
382
+ ["125032456257898008081060", "125032456257898008081060"],
383
+ ["144075637475038260853400", "144075637475038260853400"]
384
+ ],
385
+ "positionImpactPoolAmount": "4999821825",
386
+ "borrowingFactor": ["7892101019839988826", "23151176816226780500"],
387
+ "fundingFeeAmountPerSize": [
388
+ ["1890368610992617", "1890368610992617"],
389
+ ["4559366331779382", "4559366331779382"]
390
+ ],
391
+ "claimableFundingAmountPerSize": [
392
+ ["124412010852317594", "124412010852317594"],
393
+ ["62421074783581272", "62421074783581272"]
394
+ ],
395
+ "totalBorrowing": ["18380369090156244943588", "63984497247285975765329"],
396
+ "priceImpactDistributionClock": 1792939792,
397
+ "borrowingClock": 1792939792,
398
+ "fundingClock": 1792939792,
399
+ "fundingFactorPerSecond": "-2853881278539",
400
+ "config": {
401
+ "openInterestReserveFactor": "200000000000000000000",
402
+ "reserveFactor": "205000000000000000000",
403
+ "borrowingFeeReceiverFactor": "99000000000000000000",
404
+ "positionImpactDistributeFactor": "200000000000000000000000000",
405
+ "minPositionImpactPoolAmount": "5000000000",
406
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
407
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
408
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
409
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
410
+ "maxPnlFactorForLongTrader": "90000000000000000000",
411
+ "maxPnlFactorForShortTrader": "90000000000000000000"
412
+ }
413
+ },
414
+ "prices": {
415
+ "index": {
416
+ "min": "7707221943259",
417
+ "max": "7707663235519"
418
+ },
419
+ "long": {
420
+ "min": "99972250905178",
421
+ "max": "99972250905178"
422
+ },
423
+ "short": {
424
+ "min": "99972250905178",
425
+ "max": "99972250905178"
426
+ }
427
+ },
428
+ "status": [
429
+ {
430
+ "maximize": true,
431
+ "storedFundingFactor": "-2853881278539",
432
+ "borrowing": ["0", "2807499237008"],
433
+ "pnl": ["-4062912683688859625468", "14907128667310438241693"],
434
+ "reserved": ["246001999832107156536652", "288151274950076521706800"],
435
+ "poolWithoutPnl": ["150999067995100976470290", "150999067995100976470290"]
436
+ },
437
+ {
438
+ "maximize": false,
439
+ "storedFundingFactor": "-2853881278539",
440
+ "borrowing": ["0", "2807499237008"],
441
+ "pnl": ["-4076997209070062313548", "14891483532431410098713"],
442
+ "reserved": ["246001999832107156536652", "288151274950076521706800"],
443
+ "poolWithoutPnl": ["150999067995100976470290", "150999067995100976470290"]
444
+ }
445
+ ],
446
+ "pricesExpected": [
447
+ "87782510144692152291",
448
+ "87771416059114280806",
449
+ "87782510144692152291",
450
+ "87771416059114280806"
451
+ ],
452
+ "sdkNextFunding": {
453
+ "long": "-3288544245147",
454
+ "short": "2853881278539"
455
+ }
456
+ },
457
+ {
458
+ "name": "GMX/USD[WGMX-USDC]",
459
+ "now": 1793011791,
460
+ "supply": "27822611589274",
461
+ "market": {
462
+ "name": "GMX/USD[WGMX-USDC]",
463
+ "marketTokenMint": "CH7pboF6PnCTAuWZbhC1eLKsX6rjd2UAPG87oqsizxR2",
464
+ "longTokenMint": "9wX6Qz1Y5YQe71dfnFYFfZYXZhKqjYKQwdqfrRkmYUSX",
465
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
466
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
467
+ "skipBorrowingFeeForSmallerSide": true,
468
+ "ignoreOpenInterestForUsageFactor": false,
469
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
470
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
471
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
472
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
473
+ "borrowingFeeAboveOptimalUsageFactor": ["4122272957889", "4122272957889"],
474
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
475
+ "funding": {
476
+ "exponent": "100000000000000000000",
477
+ "factor": "2000000000000",
478
+ "maxFactorPerSecond": "2853881278539",
479
+ "minFactorPerSecond": "31709791984",
480
+ "increaseFactorPerSecond": "264248267",
481
+ "decreaseFactorPerSecond": "0",
482
+ "thresholdForStableFunding": "4000000000000000000",
483
+ "thresholdForDecreaseFunding": "0"
484
+ },
485
+ "primary": ["3902400832393", "43610923837"],
486
+ "openInterest": ["4909874612001719343684060", "6514922336325361094485056"],
487
+ "openInterestInTokens": ["6109559725723", "8411645463984"],
488
+ "openInterestByCollateral": [
489
+ ["0", "4909874612001719343684060"],
490
+ ["71799999999999998951424", "6443122336325361095533632"]
491
+ ],
492
+ "positionImpactPoolAmount": "40178898609",
493
+ "borrowingFactor": ["5852147535814802496", "6298694637654133297"],
494
+ "fundingFeeAmountPerSize": [
495
+ ["73852625406565857", "4282180291084371"],
496
+ ["65150876197748072", "2193539199601421"]
497
+ ],
498
+ "claimableFundingAmountPerSize": [
499
+ ["386200599167154198", "72813659076723576"],
500
+ ["2350305129586456357", "182714197861872464"]
501
+ ],
502
+ "totalBorrowing": ["287090492177608581965503", "386090081407437353890905"],
503
+ "priceImpactDistributionClock": 1793008348,
504
+ "borrowingClock": 1793008348,
505
+ "fundingClock": 1793008348,
506
+ "fundingFactorPerSecond": "-2853881278539",
507
+ "config": {
508
+ "openInterestReserveFactor": "200000000000000000000",
509
+ "reserveFactor": "205000000000000000000",
510
+ "borrowingFeeReceiverFactor": "99000000000000000000",
511
+ "positionImpactDistributeFactor": "1101863400000000000000000000",
512
+ "minPositionImpactPoolAmount": "40000000000",
513
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
514
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
515
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
516
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
517
+ "maxPnlFactorForLongTrader": "90000000000000000000",
518
+ "maxPnlFactorForShortTrader": "90000000000000000000"
519
+ }
520
+ },
521
+ "prices": {
522
+ "index": {
523
+ "min": "810611552533",
524
+ "max": "811258545936"
525
+ },
526
+ "long": {
527
+ "min": "810611552533",
528
+ "max": "811258545936"
529
+ },
530
+ "short": {
531
+ "min": "99972250905178",
532
+ "max": "99972250905178"
533
+ }
534
+ },
535
+ "status": [
536
+ {
537
+ "maximize": true,
538
+ "storedFundingFactor": "-2853881278539",
539
+ "borrowing": ["0", "1184589523575"],
540
+ "pnl": ["46557927397468612627668", "-303654652591876280986416"],
541
+ "reserved": ["4956432539399187956311728", "6514922336325361094485056"],
542
+ "poolWithoutPnl": ["3165856024946581227304848", "4359882220039172066927986"]
543
+ },
544
+ {
545
+ "maximize": false,
546
+ "storedFundingFactor": "-2853881278539",
547
+ "borrowing": ["0", "1184589523575"],
548
+ "pnl": ["42605082559691342222299", "-309096931715448803083968"],
549
+ "reserved": ["4956432539399187956311728", "6514922336325361094485056"],
550
+ "poolWithoutPnl": ["3163331197352161247601469", "4359882220039172066927986"]
551
+ }
552
+ ],
553
+ "pricesExpected": [
554
+ "278911752774992635935",
555
+ "278482395837971847610",
556
+ "278911752774992635935",
557
+ "278482395837971847610"
558
+ ],
559
+ "sdkNextFunding": {
560
+ "long": "-3786820714591",
561
+ "short": "2853881278539"
562
+ }
563
+ },
564
+ {
565
+ "name": "ETH/USD[WETH-WETH]",
566
+ "now": 1793011794,
567
+ "supply": "495136369997",
568
+ "market": {
569
+ "name": "ETH/USD[WETH-WETH]",
570
+ "marketTokenMint": "AC7iz89CBopxsuzoPU5drW59PB9rZJYpvqaedGxAjFeK",
571
+ "longTokenMint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
572
+ "shortTokenMint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
573
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
574
+ "skipBorrowingFeeForSmallerSide": true,
575
+ "ignoreOpenInterestForUsageFactor": false,
576
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
577
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
578
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
579
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
580
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
581
+ "maxOpenInterest": ["2000000000000000000000000000", "2000000000000000000000000000"],
582
+ "funding": {
583
+ "exponent": "100000000000000000000",
584
+ "factor": "2000000000000",
585
+ "maxFactorPerSecond": "2378234398782",
586
+ "minFactorPerSecond": "31709791983",
587
+ "increaseFactorPerSecond": "220206888",
588
+ "decreaseFactorPerSecond": "0",
589
+ "thresholdForStableFunding": "4000000000000000000",
590
+ "thresholdForDecreaseFunding": "0"
591
+ },
592
+ "primary": ["34859390", "34859390"],
593
+ "openInterest": ["102594483759564160000", "101594921107409838000"],
594
+ "openInterestInTokens": ["64999", "26972"],
595
+ "openInterestByCollateral": [
596
+ ["51297241879782080000", "51297241879782080000"],
597
+ ["50797460553704919000", "50797460553704919000"]
598
+ ],
599
+ "positionImpactPoolAmount": "4832786",
600
+ "borrowingFactor": ["7024344719697722332", "9677115876211145315"],
601
+ "fundingFeeAmountPerSize": [
602
+ ["226852777096664", "226852777096664"],
603
+ ["70267561041878", "70267561041878"]
604
+ ],
605
+ "claimableFundingAmountPerSize": [
606
+ ["44498873132654", "44498873132654"],
607
+ ["532017695473560", "532017695473560"]
608
+ ],
609
+ "totalBorrowing": ["7204600680914988158", "9831458239909345361"],
610
+ "priceImpactDistributionClock": 1784242411,
611
+ "borrowingClock": 1784242411,
612
+ "fundingClock": 1784242411,
613
+ "fundingFactorPerSecond": "0",
614
+ "config": {
615
+ "openInterestReserveFactor": "420000000000000000000",
616
+ "reserveFactor": "425000000000000000000",
617
+ "borrowingFeeReceiverFactor": "99000000000000000000",
618
+ "positionImpactDistributeFactor": "0",
619
+ "minPositionImpactPoolAmount": "50000000",
620
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
621
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
622
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
623
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
624
+ "maxPnlFactorForLongTrader": "90000000000000000000",
625
+ "maxPnlFactorForShortTrader": "90000000000000000000"
626
+ }
627
+ },
628
+ "prices": {
629
+ "index": {
630
+ "min": "2326385598882943",
631
+ "max": "2326385598882943"
632
+ },
633
+ "long": {
634
+ "min": "2326385598882943",
635
+ "max": "2326385598882943"
636
+ },
637
+ "short": {
638
+ "min": "2326385598882943",
639
+ "max": "2326385598882943"
640
+ }
641
+ },
642
+ "status": [
643
+ {
644
+ "maximize": true,
645
+ "storedFundingFactor": "0",
646
+ "borrowing": ["703883847", "0"],
647
+ "pnl": ["48618253782228252057", "38847648734339099404"],
648
+ "reserved": ["151212737541792412057", "101594921107409838000"],
649
+ "poolWithoutPnl": ["81096382881844074384770", "81096382881844074384770"]
650
+ },
651
+ {
652
+ "maximize": false,
653
+ "storedFundingFactor": "0",
654
+ "borrowing": ["703883847", "0"],
655
+ "pnl": ["48618253782228252057", "38847648734339099404"],
656
+ "reserved": ["151212737541792412057", "101594921107409838000"],
657
+ "poolWithoutPnl": ["81096382881844074384770", "81096382881844074384770"]
658
+ }
659
+ ],
660
+ "pricesExpected": [
661
+ "304688537003301757959",
662
+ "304688537003301757959",
663
+ "304688537003301757959",
664
+ "304688537003301757959"
665
+ ],
666
+ "sdkNextFunding": {
667
+ "long": "31709791983",
668
+ "short": "-32021775332"
669
+ }
670
+ },
671
+ {
672
+ "name": "ASTER/USD[USDT-USDT]",
673
+ "now": 1793011789,
674
+ "supply": "110048876710",
675
+ "market": {
676
+ "name": "ASTER/USD[USDT-USDT]",
677
+ "marketTokenMint": "EgmB7CeymWucnEmVjpqKoXqTuZfMuxzPf89ZziU2gmPE",
678
+ "longTokenMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
679
+ "shortTokenMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
680
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
681
+ "skipBorrowingFeeForSmallerSide": true,
682
+ "ignoreOpenInterestForUsageFactor": false,
683
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
684
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
685
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
686
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
687
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
688
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
689
+ "funding": {
690
+ "exponent": "100000000000000000000",
691
+ "factor": "2000000000000",
692
+ "maxFactorPerSecond": "2853881278539",
693
+ "minFactorPerSecond": "31709791984",
694
+ "increaseFactorPerSecond": "264248267",
695
+ "decreaseFactorPerSecond": "0",
696
+ "thresholdForStableFunding": "4000000000000000000",
697
+ "thresholdForDecreaseFunding": "0"
698
+ },
699
+ "primary": ["57703718", "57703718"],
700
+ "openInterest": ["0", "0"],
701
+ "openInterestInTokens": ["0", "0"],
702
+ "openInterestByCollateral": [
703
+ ["0", "0"],
704
+ ["0", "0"]
705
+ ],
706
+ "positionImpactPoolAmount": "263529",
707
+ "borrowingFactor": ["1879545568548720", "41310570410724"],
708
+ "fundingFeeAmountPerSize": [
709
+ ["0", "0"],
710
+ ["0", "0"]
711
+ ],
712
+ "claimableFundingAmountPerSize": [
713
+ ["0", "0"],
714
+ ["0", "0"]
715
+ ],
716
+ "totalBorrowing": ["0", "0"],
717
+ "priceImpactDistributionClock": 1783663725,
718
+ "borrowingClock": 1783663725,
719
+ "fundingClock": 1783663725,
720
+ "fundingFactorPerSecond": "0",
721
+ "config": {
722
+ "openInterestReserveFactor": "400000000000000000000",
723
+ "reserveFactor": "405000000000000000000",
724
+ "borrowingFeeReceiverFactor": "99000000000000000000",
725
+ "positionImpactDistributeFactor": "12970000000000000000000000000",
726
+ "minPositionImpactPoolAmount": "100000000",
727
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
728
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
729
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
730
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
731
+ "maxPnlFactorForLongTrader": "90000000000000000000",
732
+ "maxPnlFactorForShortTrader": "90000000000000000000"
733
+ }
734
+ },
735
+ "prices": {
736
+ "index": {
737
+ "min": "709943177856",
738
+ "max": "710022732279"
739
+ },
740
+ "long": {
741
+ "min": "99851316160167",
742
+ "max": "99856438720055"
743
+ },
744
+ "short": {
745
+ "min": "99851316160167",
746
+ "max": "99856438720055"
747
+ }
748
+ },
749
+ "status": [
750
+ {
751
+ "maximize": true,
752
+ "storedFundingFactor": "0",
753
+ "borrowing": ["0", "0"],
754
+ "pnl": ["0", "0"],
755
+ "reserved": ["0", "0"],
756
+ "poolWithoutPnl": ["5762087780386334664490", "5762087780386334664490"]
757
+ },
758
+ {
759
+ "maximize": false,
760
+ "storedFundingFactor": "0",
761
+ "borrowing": ["0", "0"],
762
+ "pnl": ["0", "0"],
763
+ "reserved": ["0", "0"],
764
+ "poolWithoutPnl": ["5761792189635119400906", "5761792189635119400906"]
765
+ }
766
+ ],
767
+ "pricesExpected": [
768
+ "104717002250962386176",
769
+ "104711630070118723424",
770
+ "104717002250962386176",
771
+ "104711630070118723424"
772
+ ],
773
+ "sdkNextFunding": {
774
+ "long": "0",
775
+ "short": "0"
776
+ }
777
+ },
778
+ {
779
+ "name": "WIF/USD[WIF-USDC]",
780
+ "now": 1793011795,
781
+ "supply": "1855489075",
782
+ "market": {
783
+ "name": "WIF/USD[WIF-USDC]",
784
+ "marketTokenMint": "4H7wYvhiN3D3uZgt8SXjboKj9bMLdbNX23w3F1GisuvS",
785
+ "longTokenMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
786
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
787
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
788
+ "skipBorrowingFeeForSmallerSide": true,
789
+ "ignoreOpenInterestForUsageFactor": false,
790
+ "borrowingFeeFactor": ["158548959918800", "158548959918800"],
791
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
792
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
793
+ "borrowingFeeBaseFactor": ["158548959918800", "158548959918800"],
794
+ "borrowingFeeAboveOptimalUsageFactor": ["317097919837600", "317097919837600"],
795
+ "maxOpenInterest": ["0", "0"],
796
+ "funding": {
797
+ "exponent": "100000000000000000000",
798
+ "factor": "2000000000000",
799
+ "maxFactorPerSecond": "2853881278748",
800
+ "minFactorPerSecond": "31709791983",
801
+ "increaseFactorPerSecond": "264248266",
802
+ "decreaseFactorPerSecond": "0",
803
+ "thresholdForStableFunding": "4000000000000000000",
804
+ "thresholdForDecreaseFunding": "0"
805
+ },
806
+ "primary": ["88390666", "29192737"],
807
+ "openInterest": ["0", "0"],
808
+ "openInterestInTokens": ["0", "0"],
809
+ "openInterestByCollateral": [
810
+ ["0", "0"],
811
+ ["0", "0"]
812
+ ],
813
+ "positionImpactPoolAmount": "129047663",
814
+ "borrowingFactor": ["2185743044199647", "2275393505240857"],
815
+ "fundingFeeAmountPerSize": [
816
+ ["0", "18091007101"],
817
+ ["0", "209279463"]
818
+ ],
819
+ "claimableFundingAmountPerSize": [
820
+ ["0", "261128945"],
821
+ ["0", "18100520066"]
822
+ ],
823
+ "totalBorrowing": ["0", "0"],
824
+ "priceImpactDistributionClock": 1772425051,
825
+ "borrowingClock": 1772425051,
826
+ "fundingClock": 1772425051,
827
+ "fundingFactorPerSecond": "0",
828
+ "config": {
829
+ "openInterestReserveFactor": "120000000000000000000",
830
+ "reserveFactor": "125000000000000000000",
831
+ "borrowingFeeReceiverFactor": "25000000000000000000",
832
+ "positionImpactDistributeFactor": "55000000000000000000000",
833
+ "minPositionImpactPoolAmount": "0",
834
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
835
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
836
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
837
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
838
+ "maxPnlFactorForLongTrader": "90000000000000000000",
839
+ "maxPnlFactorForShortTrader": "90000000000000000000"
840
+ }
841
+ },
842
+ "prices": {
843
+ "index": {
844
+ "min": "17905744115326",
845
+ "max": "17911683540721"
846
+ },
847
+ "long": {
848
+ "min": "17905744115326",
849
+ "max": "17911683540721"
850
+ },
851
+ "short": {
852
+ "min": "99972250905178",
853
+ "max": "99972250905178"
854
+ }
855
+ },
856
+ "status": [
857
+ {
858
+ "maximize": true,
859
+ "storedFundingFactor": "0",
860
+ "borrowing": ["0", "0"],
861
+ "pnl": ["0", "0"],
862
+ "reserved": ["0", "0"],
863
+ "poolWithoutPnl": ["1583225637345567310186", "2918463627972873292186"]
864
+ },
865
+ {
866
+ "maximize": false,
867
+ "storedFundingFactor": "0",
868
+ "borrowing": ["0", "0"],
869
+ "pnl": ["0", "0"],
870
+ "reserved": ["0", "0"],
871
+ "poolWithoutPnl": ["1582700647579245947116", "2918463627972873292186"]
872
+ }
873
+ ],
874
+ "pricesExpected": [
875
+ "2426147006722979817260",
876
+ "2425864067969313825952",
877
+ "2426147006722979817260",
878
+ "2425864067969313825952"
879
+ ],
880
+ "sdkNextFunding": {
881
+ "long": "0",
882
+ "short": "0"
883
+ }
884
+ },
885
+ {
886
+ "name": "BTC/USD[WBTC-USDC] at index price x3/2",
887
+ "now": 1793012370,
888
+ "supply": "7249851752815",
889
+ "market": {
890
+ "name": "BTC/USD[WBTC-USDC]",
891
+ "marketTokenMint": "7RNev94wKusSmFEqo3gvv1d1zMweP6sa2LtjJjroAvym",
892
+ "longTokenMint": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",
893
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
894
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
895
+ "skipBorrowingFeeForSmallerSide": true,
896
+ "ignoreOpenInterestForUsageFactor": false,
897
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
898
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
899
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
900
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
901
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
902
+ "maxOpenInterest": ["2000000000000000000000000000", "2000000000000000000000000000"],
903
+ "funding": {
904
+ "exponent": "100000000000000000000",
905
+ "factor": "2000000000000",
906
+ "maxFactorPerSecond": "2378234398782",
907
+ "minFactorPerSecond": "31709791983",
908
+ "increaseFactorPerSecond": "220206888",
909
+ "decreaseFactorPerSecond": "0",
910
+ "thresholdForStableFunding": "4000000000000000000",
911
+ "thresholdForDecreaseFunding": "0"
912
+ },
913
+ "primary": ["798917", "15179217708"],
914
+ "openInterest": ["158483860715021173694717", "150689008887873877809710"],
915
+ "openInterestInTokens": ["2443680", "1864623"],
916
+ "openInterestByCollateral": [
917
+ ["0", "158483860715021173694717"],
918
+ ["605078092498103117960", "150083930795375774691750"]
919
+ ],
920
+ "positionImpactPoolAmount": "399604",
921
+ "borrowingFactor": ["10942058065405269926", "6421796328955645343"],
922
+ "fundingFeeAmountPerSize": [
923
+ ["5596205806064", "4190102952231174"],
924
+ ["2266603759910", "4291917859653254"]
925
+ ],
926
+ "claimableFundingAmountPerSize": [
927
+ ["693078442618", "143691113415207338"],
928
+ ["84556026267534", "31482592740517732"]
929
+ ],
930
+ "totalBorrowing": ["13602146619296023854498", "9653406681787749890808"],
931
+ "priceImpactDistributionClock": 1792939908,
932
+ "borrowingClock": 1792939908,
933
+ "fundingClock": 1792939908,
934
+ "fundingFactorPerSecond": "327108310494",
935
+ "config": {
936
+ "openInterestReserveFactor": "520000000000000000000",
937
+ "reserveFactor": "525000000000000000000",
938
+ "borrowingFeeReceiverFactor": "99000000000000000000",
939
+ "positionImpactDistributeFactor": "2400000000000000000000",
940
+ "minPositionImpactPoolAmount": "400000",
941
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
942
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
943
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
944
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
945
+ "maxPnlFactorForLongTrader": "90000000000000000000",
946
+ "maxPnlFactorForShortTrader": "90000000000000000000"
947
+ }
948
+ },
949
+ "prices": {
950
+ "index": {
951
+ "min": "120384580576080708",
952
+ "max": "120384580576080708"
953
+ },
954
+ "long": {
955
+ "min": "80256387050720472",
956
+ "max": "80256387050720472"
957
+ },
958
+ "short": {
959
+ "min": "99972235338979",
960
+ "max": "99972235338979"
961
+ }
962
+ },
963
+ "status": [
964
+ {
965
+ "maximize": true,
966
+ "storedFundingFactor": "327108310494",
967
+ "borrowing": ["2182179195700", "0"],
968
+ "pnl": ["135697531147135730830723", "-73782848899639460183374"],
969
+ "reserved": ["294181391862156904525440", "150689008887873877809710"],
970
+ "poolWithoutPnl": ["64118191973400447328824", "1517500324965773419440132"]
971
+ },
972
+ {
973
+ "maximize": false,
974
+ "storedFundingFactor": "327108310494",
975
+ "borrowing": ["2182179195700", "0"],
976
+ "pnl": ["135697531147135730830723", "-73782848899639460183374"],
977
+ "reserved": ["294181391862156904525440", "150689008887873877809710"],
978
+ "poolWithoutPnl": ["64118191973400447328824", "1517500324965773419440132"]
979
+ }
980
+ ],
981
+ "pricesExpected": [
982
+ "213746297142104681908",
983
+ "213746297142104681908",
984
+ "213746297142104681908",
985
+ "215515111020223069418"
986
+ ],
987
+ "sdkNextFunding": {
988
+ "long": "327108310494",
989
+ "short": "-344028992569"
990
+ }
991
+ },
992
+ {
993
+ "name": "SOL/USD[USDC-USDC] at index price x2/1",
994
+ "now": 1793012372,
995
+ "supply": "648273831908133",
996
+ "market": {
997
+ "name": "SOL/USD[USDC-USDC]",
998
+ "marketTokenMint": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
999
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1000
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1001
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1002
+ "skipBorrowingFeeForSmallerSide": true,
1003
+ "ignoreOpenInterestForUsageFactor": false,
1004
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
1005
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1006
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1007
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
1008
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1009
+ "maxOpenInterest": ["2499999999999999895779934208", "2499999999999999895779934208"],
1010
+ "funding": {
1011
+ "exponent": "100000000000000000000",
1012
+ "factor": "2000000000000",
1013
+ "maxFactorPerSecond": "2378234398782",
1014
+ "minFactorPerSecond": "31709791983",
1015
+ "increaseFactorPerSecond": "220206888",
1016
+ "decreaseFactorPerSecond": "0",
1017
+ "thresholdForStableFunding": "4000000000000000000",
1018
+ "thresholdForDecreaseFunding": "0"
1019
+ },
1020
+ "primary": ["423006451977", "423006451976"],
1021
+ "openInterest": ["83203529794206595988851319", "79265418698718423065042235"],
1022
+ "openInterestInTokens": ["8364881010478", "7787837157685"],
1023
+ "openInterestByCollateral": [
1024
+ ["41601764897103297994425660", "41601764897103297994425659"],
1025
+ ["39632709349359211532521118", "39632709349359211532521117"]
1026
+ ],
1027
+ "positionImpactPoolAmount": "2996382850",
1028
+ "borrowingFactor": ["8821860728969789087", "11013038768087430844"],
1029
+ "fundingFeeAmountPerSize": [
1030
+ ["8587742443214118", "8587742443214118"],
1031
+ ["160003213057450141", "160003213057450141"]
1032
+ ],
1033
+ "claimableFundingAmountPerSize": [
1034
+ ["168123756556196818", "168123756556196818"],
1035
+ ["87867504380939065", "87867504380939065"]
1036
+ ],
1037
+ "totalBorrowing": ["7259940065886044027334570", "8686916679346278156262396"],
1038
+ "priceImpactDistributionClock": 1793012222,
1039
+ "borrowingClock": 1793012222,
1040
+ "fundingClock": 1793012222,
1041
+ "fundingFactorPerSecond": "248461082755",
1042
+ "config": {
1043
+ "openInterestReserveFactor": "450000000000000000000",
1044
+ "reserveFactor": "455000000000000000000",
1045
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1046
+ "positionImpactDistributeFactor": "353982000000000000000000000",
1047
+ "minPositionImpactPoolAmount": "3000000000",
1048
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1049
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1050
+ "maxPnlFactorForLongWithdrawal": "69999999999999991808",
1051
+ "maxPnlFactorForShortWithdrawal": "69999999999999991808",
1052
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1053
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1054
+ }
1055
+ },
1056
+ "prices": {
1057
+ "index": {
1058
+ "min": "20242914911422",
1059
+ "max": "20244272376178"
1060
+ },
1061
+ "long": {
1062
+ "min": "99973720029319",
1063
+ "max": "99973720029319"
1064
+ },
1065
+ "short": {
1066
+ "min": "99973720029319",
1067
+ "max": "99973720029319"
1068
+ }
1069
+ },
1070
+ "status": [
1071
+ {
1072
+ "maximize": true,
1073
+ "storedFundingFactor": "248461082755",
1074
+ "borrowing": ["2245374454312", "0"],
1075
+ "pnl": ["86137399776229094786741765", "-78383106228309588956535835"],
1076
+ "reserved": ["169340929570435690775593084", "79265418698718423065042235"],
1077
+ "poolWithoutPnl": ["42289528600544170605513663", "42289528600444196885484344"]
1078
+ },
1079
+ {
1080
+ "maximize": false,
1081
+ "storedFundingFactor": "248461082755",
1082
+ "borrowing": ["2245374454312", "0"],
1083
+ "pnl": ["86126044745069237235028397", "-78393677942776613558585695"],
1084
+ "reserved": ["169340929570435690775593084", "79265418698718423065042235"],
1085
+ "poolWithoutPnl": ["42289528600544170605513663", "42289528600444196885484344"]
1086
+ }
1087
+ ],
1088
+ "pricesExpected": [
1089
+ "192592587079617772831",
1090
+ "192576273322327878619",
1091
+ "192592587079617772831",
1092
+ "205623083641994474245"
1093
+ ],
1094
+ "sdkNextFunding": {
1095
+ "long": "248461082755",
1096
+ "short": "-260805272224"
1097
+ }
1098
+ }
1099
+ ],
1100
+ "marketStatus": {
1101
+ "now": 1791317685,
1102
+ "markets": [
1103
+ {
1104
+ "name": "SOL/USD[USDC-USDC]",
1105
+ "market": {
1106
+ "name": "SOL/USD[USDC-USDC]",
1107
+ "marketTokenMint": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
1108
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1109
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1110
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1111
+ "skipBorrowingFeeForSmallerSide": true,
1112
+ "ignoreOpenInterestForUsageFactor": false,
1113
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
1114
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1115
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1116
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
1117
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1118
+ "maxOpenInterest": ["2499999999999999895779934208", "2499999999999999895779934208"],
1119
+ "funding": {
1120
+ "exponent": "100000000000000000000",
1121
+ "factor": "2000000000000",
1122
+ "maxFactorPerSecond": "2378234398782",
1123
+ "minFactorPerSecond": "31709791983",
1124
+ "increaseFactorPerSecond": "220206888",
1125
+ "decreaseFactorPerSecond": "0",
1126
+ "thresholdForStableFunding": "4000000000000000000",
1127
+ "thresholdForDecreaseFunding": "0"
1128
+ },
1129
+ "primary": ["507225559179", "507225559178"],
1130
+ "openInterest": ["97530499839595587550894395", "95888385403343007682927931"],
1131
+ "openInterestInTokens": ["8253997333564", "7940989485383"],
1132
+ "openInterestByCollateral": [
1133
+ ["48765249919797793775447198", "48765249919797793775447197"],
1134
+ ["47944192701671503841463966", "47944192701671503841463965"]
1135
+ ],
1136
+ "positionImpactPoolAmount": "2446637980",
1137
+ "borrowingFactor": ["8130687077373712930", "10604678654572289611"],
1138
+ "fundingFeeAmountPerSize": [
1139
+ ["8557086926575072", "8557086926575072"],
1140
+ ["159971778690106994", "159971778690106994"]
1141
+ ],
1142
+ "claimableFundingAmountPerSize": [
1143
+ ["168107657343477219", "168107657343477219"],
1144
+ ["87851735314647470", "87851735314647470"]
1145
+ ],
1146
+ "totalBorrowing": ["7866277335177864908289234", "10125207317567746565508483"],
1147
+ "priceImpactDistributionClock": 1791316840,
1148
+ "borrowingClock": 1791316840,
1149
+ "fundingClock": 1791316840,
1150
+ "fundingFactorPerSecond": "462362500534",
1151
+ "config": {
1152
+ "openInterestReserveFactor": "450000000000000000000",
1153
+ "reserveFactor": "455000000000000000000",
1154
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1155
+ "positionImpactDistributeFactor": "353982000000000000000000000",
1156
+ "minPositionImpactPoolAmount": "3000000000",
1157
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1158
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1159
+ "maxPnlFactorForLongWithdrawal": "69999999999999991808",
1160
+ "maxPnlFactorForShortWithdrawal": "69999999999999991808",
1161
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1162
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1163
+ }
1164
+ },
1165
+ "prices": {
1166
+ "index": {
1167
+ "min": "12081886000000",
1168
+ "max": "12083217000000",
1169
+ "isOpen": true,
1170
+ "ts": 1791317683
1171
+ },
1172
+ "long": {
1173
+ "min": "99984800000000",
1174
+ "max": "99993900000000",
1175
+ "isOpen": true,
1176
+ "ts": 0
1177
+ },
1178
+ "short": {
1179
+ "min": "99984800000000",
1180
+ "max": "99993900000000",
1181
+ "isOpen": true,
1182
+ "ts": 0
1183
+ }
1184
+ },
1185
+ "expected": {
1186
+ "fundingRatePerSecondForLong": "462362500534",
1187
+ "fundingRatePerSecondForShort": "-470280582934",
1188
+ "liquidityForLong": "128481966503426961012000000",
1189
+ "liquidityForShort": "132328421998509217117072069",
1190
+ "openInterestForLong": "97530499839595587550894395",
1191
+ "openInterestForShort": "95888385403343007682927931"
1192
+ }
1193
+ },
1194
+ {
1195
+ "name": "WTI/USD[USDC-USDC]",
1196
+ "market": {
1197
+ "name": "WTI/USD[USDC-USDC]",
1198
+ "marketTokenMint": "ZTn3eszWBDc96ryfYdmDZYd6cuaZ8WxfSCSG8GJnQ8d",
1199
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1200
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1201
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1202
+ "skipBorrowingFeeForSmallerSide": true,
1203
+ "ignoreOpenInterestForUsageFactor": false,
1204
+ "borrowingFeeFactor": ["1109842719432", "1109842719432"],
1205
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1206
+ "borrowingFeeOptimalUsageFactor": ["55000000000000000000", "55000000000000000000"],
1207
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
1208
+ "borrowingFeeAboveOptimalUsageFactor": ["2536783358701", "2536783358701"],
1209
+ "maxOpenInterest": ["2000000000000000000000000000", "2000000000000000000000000000"],
1210
+ "funding": {
1211
+ "exponent": "100000000000000000000",
1212
+ "factor": "2000000000000",
1213
+ "maxFactorPerSecond": "317097919838",
1214
+ "minFactorPerSecond": "0",
1215
+ "increaseFactorPerSecond": "29360919",
1216
+ "decreaseFactorPerSecond": "0",
1217
+ "thresholdForStableFunding": "4000000000000000000",
1218
+ "thresholdForDecreaseFunding": "0"
1219
+ },
1220
+ "primary": ["475819241005", "475819241004"],
1221
+ "openInterest": ["194633605761188402649726976", "237871434260354146652056576"],
1222
+ "openInterestInTokens": ["2185527935989", "2589733385665"],
1223
+ "openInterestByCollateral": [
1224
+ ["97316802880594201324863488", "97316802880594201324863488"],
1225
+ ["118935717130177073326028288", "118935717130177073326028288"]
1226
+ ],
1227
+ "positionImpactPoolAmount": "299999798",
1228
+ "borrowingFactor": ["3622436844993208547", "9260383485382731506"],
1229
+ "fundingFeeAmountPerSize": [
1230
+ ["83690319952586", "83690319952586"],
1231
+ ["333169190828410", "333169190828410"]
1232
+ ],
1233
+ "claimableFundingAmountPerSize": [
1234
+ ["303669210523172217", "303669210523172217"],
1235
+ ["3449059931104969", "3449059931104969"]
1236
+ ],
1237
+ "totalBorrowing": ["7050476672811928347801685", "21913442040060080424094766"],
1238
+ "priceImpactDistributionClock": 1791317654,
1239
+ "borrowingClock": 1791317654,
1240
+ "fundingClock": 1791317654,
1241
+ "fundingFactorPerSecond": "-317097919838",
1242
+ "config": {
1243
+ "openInterestReserveFactor": "500000000000000000000",
1244
+ "reserveFactor": "505000000000000000000",
1245
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1246
+ "positionImpactDistributeFactor": "32362400000000000000000000",
1247
+ "minPositionImpactPoolAmount": "300000000",
1248
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1249
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1250
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1251
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1252
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1253
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1254
+ }
1255
+ },
1256
+ "prices": {
1257
+ "index": {
1258
+ "min": "89780000000000",
1259
+ "max": "89790000000000",
1260
+ "isOpen": true,
1261
+ "ts": 1791317683
1262
+ },
1263
+ "long": {
1264
+ "min": "99984800000000",
1265
+ "max": "99993900000000",
1266
+ "isOpen": true,
1267
+ "ts": 0
1268
+ },
1269
+ "short": {
1270
+ "min": "99984800000000",
1271
+ "max": "99993900000000",
1272
+ "isOpen": true,
1273
+ "ts": 0
1274
+ }
1275
+ },
1276
+ "expected": {
1277
+ "fundingRatePerSecondForLong": "-387541178707",
1278
+ "fundingRatePerSecondForShort": "317097919838",
1279
+ "liquidityForLong": "41634904867731310000000000",
1280
+ "liquidityForShort": "2023979329549347943424",
1281
+ "openInterestForLong": "194633605761188402649726976",
1282
+ "openInterestForShort": "237871434260354146652056576"
1283
+ }
1284
+ },
1285
+ {
1286
+ "name": "LINK/USD[WSOL-USDC]",
1287
+ "market": {
1288
+ "name": "LINK/USD[WSOL-USDC]",
1289
+ "marketTokenMint": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
1290
+ "longTokenMint": "So11111111111111111111111111111111111111112",
1291
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1292
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1293
+ "skipBorrowingFeeForSmallerSide": true,
1294
+ "ignoreOpenInterestForUsageFactor": false,
1295
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
1296
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1297
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1298
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
1299
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1300
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
1301
+ "funding": {
1302
+ "exponent": "100000000000000000000",
1303
+ "factor": "2000000000000",
1304
+ "maxFactorPerSecond": "2853881278538",
1305
+ "minFactorPerSecond": "31709791983",
1306
+ "increaseFactorPerSecond": "246248266",
1307
+ "decreaseFactorPerSecond": "0",
1308
+ "thresholdForStableFunding": "4000000000000000000",
1309
+ "thresholdForDecreaseFunding": "0"
1310
+ },
1311
+ "primary": ["4161679841736", "479391357985"],
1312
+ "openInterest": ["19567674402602549713787508", "20488155810895935308302656"],
1313
+ "openInterestInTokens": ["1455983839808", "1448214779752"],
1314
+ "openInterestByCollateral": [
1315
+ ["1216983309309822388017140", "18350691093292727325770368"],
1316
+ ["0", "20488155810895935308302656"]
1317
+ ],
1318
+ "positionImpactPoolAmount": "1971613295",
1319
+ "borrowingFactor": ["13374732184482976711", "14856083992590802310"],
1320
+ "fundingFeeAmountPerSize": [
1321
+ ["17914083289953540", "6168910158297769"],
1322
+ ["21928095741741195", "17877389646553694"]
1323
+ ],
1324
+ "claimableFundingAmountPerSize": [
1325
+ ["354905326138581041", "257389331995017835"],
1326
+ ["478967829299882613", "370126534155271485"]
1327
+ ],
1328
+ "totalBorrowing": ["2584964270219742916806493", "3032513717497683912484252"],
1329
+ "priceImpactDistributionClock": 1791309994,
1330
+ "borrowingClock": 1791309994,
1331
+ "fundingClock": 1791309994,
1332
+ "fundingFactorPerSecond": "-2853881278538",
1333
+ "config": {
1334
+ "openInterestReserveFactor": "200000000000000000000",
1335
+ "reserveFactor": "205000000000000000000",
1336
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1337
+ "positionImpactDistributeFactor": "134036900000000000000000000",
1338
+ "minPositionImpactPoolAmount": "2000000000",
1339
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1340
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1341
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1342
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1343
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1344
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1345
+ }
1346
+ },
1347
+ "prices": {
1348
+ "index": {
1349
+ "min": "13973235000000",
1350
+ "max": "13975860000000",
1351
+ "isOpen": true,
1352
+ "ts": 1791317683
1353
+ },
1354
+ "long": {
1355
+ "min": "12081886000000",
1356
+ "max": "12083217000000",
1357
+ "isOpen": true,
1358
+ "ts": 0
1359
+ },
1360
+ "short": {
1361
+ "min": "99984800000000",
1362
+ "max": "99993900000000",
1363
+ "isOpen": true,
1364
+ "ts": 0
1365
+ }
1366
+ },
1367
+ "expected": {
1368
+ "fundingRatePerSecondForLong": "-2988130479762",
1369
+ "fundingRatePerSecondForShort": "2853881278538",
1370
+ "liquidityForLong": "79651373692580965120000000",
1371
+ "liquidityForShort": "75375542288821320691697344",
1372
+ "openInterestForLong": "19567674402602549713787508",
1373
+ "openInterestForShort": "20488155810895935308302656"
1374
+ }
1375
+ },
1376
+ {
1377
+ "name": "ETH/USD[WETH-WETH]",
1378
+ "market": {
1379
+ "name": "ETH/USD[WETH-WETH]",
1380
+ "marketTokenMint": "AC7iz89CBopxsuzoPU5drW59PB9rZJYpvqaedGxAjFeK",
1381
+ "longTokenMint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
1382
+ "shortTokenMint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
1383
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1384
+ "skipBorrowingFeeForSmallerSide": true,
1385
+ "ignoreOpenInterestForUsageFactor": false,
1386
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
1387
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1388
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1389
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
1390
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1391
+ "maxOpenInterest": ["2000000000000000000000000000", "2000000000000000000000000000"],
1392
+ "funding": {
1393
+ "exponent": "100000000000000000000",
1394
+ "factor": "2000000000000",
1395
+ "maxFactorPerSecond": "2378234398782",
1396
+ "minFactorPerSecond": "31709791983",
1397
+ "increaseFactorPerSecond": "220206888",
1398
+ "decreaseFactorPerSecond": "0",
1399
+ "thresholdForStableFunding": "4000000000000000000",
1400
+ "thresholdForDecreaseFunding": "0"
1401
+ },
1402
+ "primary": ["34859390", "34859390"],
1403
+ "openInterest": ["102594483759564160000", "101594921107409838000"],
1404
+ "openInterestInTokens": ["64999", "26972"],
1405
+ "openInterestByCollateral": [
1406
+ ["51297241879782080000", "51297241879782080000"],
1407
+ ["50797460553704919000", "50797460553704919000"]
1408
+ ],
1409
+ "positionImpactPoolAmount": "4832786",
1410
+ "borrowingFactor": ["7024344719697722332", "9677115876211145315"],
1411
+ "fundingFeeAmountPerSize": [
1412
+ ["226852777096664", "226852777096664"],
1413
+ ["70267561041878", "70267561041878"]
1414
+ ],
1415
+ "claimableFundingAmountPerSize": [
1416
+ ["44498873132654", "44498873132654"],
1417
+ ["532017695473560", "532017695473560"]
1418
+ ],
1419
+ "totalBorrowing": ["7204600680914988158", "9831458239909345361"],
1420
+ "priceImpactDistributionClock": 1784242411,
1421
+ "borrowingClock": 1784242411,
1422
+ "fundingClock": 1784242411,
1423
+ "fundingFactorPerSecond": "0",
1424
+ "config": {
1425
+ "openInterestReserveFactor": "420000000000000000000",
1426
+ "reserveFactor": "425000000000000000000",
1427
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1428
+ "positionImpactDistributeFactor": "0",
1429
+ "minPositionImpactPoolAmount": "50000000",
1430
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1431
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1432
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1433
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1434
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1435
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1436
+ }
1437
+ },
1438
+ "prices": {
1439
+ "index": {
1440
+ "min": "2692171200000000",
1441
+ "max": "2692330300000000",
1442
+ "isOpen": true,
1443
+ "ts": 1791317684
1444
+ },
1445
+ "long": {
1446
+ "min": "2692150900000000",
1447
+ "max": "2692321200000000",
1448
+ "isOpen": true,
1449
+ "ts": 0
1450
+ },
1451
+ "short": {
1452
+ "min": "2692150900000000",
1453
+ "max": "2692321200000000",
1454
+ "isOpen": true,
1455
+ "ts": 0
1456
+ }
1457
+ },
1458
+ "expected": {
1459
+ "fundingRatePerSecondForLong": "31709791983",
1460
+ "fundingRatePerSecondForShort": "-32021775332",
1461
+ "liquidityForLong": "393981301503024500000000",
1462
+ "liquidityForShort": "394054705359086790162000",
1463
+ "openInterestForLong": "102594483759564160000",
1464
+ "openInterestForShort": "101594921107409838000"
1465
+ }
1466
+ },
1467
+ {
1468
+ "name": "ASTER/USD[USDT-USDT]",
1469
+ "market": {
1470
+ "name": "ASTER/USD[USDT-USDT]",
1471
+ "marketTokenMint": "EgmB7CeymWucnEmVjpqKoXqTuZfMuxzPf89ZziU2gmPE",
1472
+ "longTokenMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
1473
+ "shortTokenMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
1474
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1475
+ "skipBorrowingFeeForSmallerSide": true,
1476
+ "ignoreOpenInterestForUsageFactor": false,
1477
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
1478
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1479
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1480
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
1481
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1482
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
1483
+ "funding": {
1484
+ "exponent": "100000000000000000000",
1485
+ "factor": "2000000000000",
1486
+ "maxFactorPerSecond": "2853881278539",
1487
+ "minFactorPerSecond": "31709791984",
1488
+ "increaseFactorPerSecond": "264248267",
1489
+ "decreaseFactorPerSecond": "0",
1490
+ "thresholdForStableFunding": "4000000000000000000",
1491
+ "thresholdForDecreaseFunding": "0"
1492
+ },
1493
+ "primary": ["57703718", "57703718"],
1494
+ "openInterest": ["0", "0"],
1495
+ "openInterestInTokens": ["0", "0"],
1496
+ "openInterestByCollateral": [
1497
+ ["0", "0"],
1498
+ ["0", "0"]
1499
+ ],
1500
+ "positionImpactPoolAmount": "263529",
1501
+ "borrowingFactor": ["1879545568548720", "41310570410724"],
1502
+ "fundingFeeAmountPerSize": [
1503
+ ["0", "0"],
1504
+ ["0", "0"]
1505
+ ],
1506
+ "claimableFundingAmountPerSize": [
1507
+ ["0", "0"],
1508
+ ["0", "0"]
1509
+ ],
1510
+ "totalBorrowing": ["0", "0"],
1511
+ "priceImpactDistributionClock": 1783663725,
1512
+ "borrowingClock": 1783663725,
1513
+ "fundingClock": 1783663725,
1514
+ "fundingFactorPerSecond": "0",
1515
+ "config": {
1516
+ "openInterestReserveFactor": "400000000000000000000",
1517
+ "reserveFactor": "405000000000000000000",
1518
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1519
+ "positionImpactDistributeFactor": "12970000000000000000000000000",
1520
+ "minPositionImpactPoolAmount": "100000000",
1521
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1522
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1523
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1524
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1525
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1526
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1527
+ }
1528
+ },
1529
+ "prices": {
1530
+ "index": {
1531
+ "min": "735909900000",
1532
+ "max": "736185700000",
1533
+ "isOpen": true,
1534
+ "ts": 1791317683
1535
+ },
1536
+ "long": {
1537
+ "min": "99987400000000",
1538
+ "max": "99994000000000",
1539
+ "isOpen": true,
1540
+ "ts": 0
1541
+ },
1542
+ "short": {
1543
+ "min": "99987400000000",
1544
+ "max": "99994000000000",
1545
+ "isOpen": true,
1546
+ "ts": 0
1547
+ }
1548
+ },
1549
+ "expected": {
1550
+ "fundingRatePerSecondForLong": "0",
1551
+ "fundingRatePerSecondForShort": "0",
1552
+ "liquidityForLong": "23078578932612800000000",
1553
+ "liquidityForShort": "23078578932612800000000",
1554
+ "openInterestForLong": "0",
1555
+ "openInterestForShort": "0"
1556
+ }
1557
+ },
1558
+ {
1559
+ "name": "NATGAS/USD[USDC-USDC]",
1560
+ "market": {
1561
+ "name": "NATGAS/USD[USDC-USDC]",
1562
+ "marketTokenMint": "HEdK5EakbdE2WppEKwoDT3y7jsEQnudGj8XUKLuDFgL1",
1563
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1564
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1565
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1566
+ "skipBorrowingFeeForSmallerSide": true,
1567
+ "ignoreOpenInterestForUsageFactor": false,
1568
+ "borrowingFeeFactor": ["1109842719432", "1109842719432"],
1569
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1570
+ "borrowingFeeOptimalUsageFactor": ["55000000000000000000", "55000000000000000000"],
1571
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
1572
+ "borrowingFeeAboveOptimalUsageFactor": ["2536783358701", "2536783358701"],
1573
+ "maxOpenInterest": ["1000000000000000000000000000", "1000000000000000000000000000"],
1574
+ "funding": {
1575
+ "exponent": "100000000000000000000",
1576
+ "factor": "2000000000000",
1577
+ "maxFactorPerSecond": "317097919838",
1578
+ "minFactorPerSecond": "0",
1579
+ "increaseFactorPerSecond": "29360919",
1580
+ "decreaseFactorPerSecond": "0",
1581
+ "thresholdForStableFunding": "4000000000000000000",
1582
+ "thresholdForDecreaseFunding": "0"
1583
+ },
1584
+ "primary": ["37245603442", "37245603442"],
1585
+ "openInterest": ["14724779707550275348987904", "11955398753494206569512960"],
1586
+ "openInterestInTokens": ["47750493629115", "38345152946061"],
1587
+ "openInterestByCollateral": [
1588
+ ["7362389853775137674493952", "7362389853775137674493952"],
1589
+ ["5977699376747103284756480", "5977699376747103284756480"]
1590
+ ],
1591
+ "positionImpactPoolAmount": "7725776971",
1592
+ "borrowingFactor": ["137333370468958779", "175709055273388"],
1593
+ "fundingFeeAmountPerSize": [
1594
+ ["1806477739609", "1806477739609"],
1595
+ ["0", "0"]
1596
+ ],
1597
+ "claimableFundingAmountPerSize": [
1598
+ ["0", "0"],
1599
+ ["2144219152709", "2144219152709"]
1600
+ ],
1601
+ "totalBorrowing": ["5624360656714563659269", "21006631231947779753"],
1602
+ "priceImpactDistributionClock": 1791316728,
1603
+ "borrowingClock": 1791316728,
1604
+ "fundingClock": 1791316728,
1605
+ "fundingFactorPerSecond": "135122012769",
1606
+ "config": {
1607
+ "openInterestReserveFactor": "400000000000000000000",
1608
+ "reserveFactor": "405000000000000000000",
1609
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1610
+ "positionImpactDistributeFactor": "828879100000000000000000000",
1611
+ "minPositionImpactPoolAmount": "45000000000",
1612
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1613
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1614
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1615
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1616
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1617
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1618
+ }
1619
+ },
1620
+ "prices": {
1621
+ "index": {
1622
+ "min": "312600000000",
1623
+ "max": "312700000000",
1624
+ "isOpen": true,
1625
+ "ts": 1791317683
1626
+ },
1627
+ "long": {
1628
+ "min": "99984800000000",
1629
+ "max": "99993900000000",
1630
+ "isOpen": true,
1631
+ "ts": 0
1632
+ },
1633
+ "short": {
1634
+ "min": "99984800000000",
1635
+ "max": "99993900000000",
1636
+ "isOpen": true,
1637
+ "ts": 0
1638
+ }
1639
+ },
1640
+ "expected": {
1641
+ "fundingRatePerSecondForLong": "138038603292",
1642
+ "fundingRatePerSecondForShort": "-170014239300",
1643
+ "liquidityForLong": "0",
1644
+ "liquidityForShort": "2940578090616519830487040",
1645
+ "openInterestForLong": "14724779707550275348987904",
1646
+ "openInterestForShort": "11955398753494206569512960"
1647
+ }
1648
+ },
1649
+ {
1650
+ "name": "AAPL/USD[USDC-USDC]",
1651
+ "market": {
1652
+ "name": "AAPL/USD[USDC-USDC]",
1653
+ "marketTokenMint": "GRT3cFnBkNNTs89wC9Q9qjU9JmZ6XTgu7fF4KRHgW5iR",
1654
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1655
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1656
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1657
+ "skipBorrowingFeeForSmallerSide": false,
1658
+ "ignoreOpenInterestForUsageFactor": false,
1659
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
1660
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1661
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1662
+ "borrowingFeeBaseFactor": ["1744038559107", "1744038559107"],
1663
+ "borrowingFeeAboveOptimalUsageFactor": ["4122272957889", "4122272957889"],
1664
+ "maxOpenInterest": ["200000000000000000000000000", "200000000000000000000000000"],
1665
+ "funding": {
1666
+ "exponent": "100000000000000000000",
1667
+ "factor": "2000000000000",
1668
+ "maxFactorPerSecond": "317097919838",
1669
+ "minFactorPerSecond": "31709791984",
1670
+ "increaseFactorPerSecond": "220206889",
1671
+ "decreaseFactorPerSecond": "0",
1672
+ "thresholdForStableFunding": "4000000000000000000",
1673
+ "thresholdForDecreaseFunding": "0"
1674
+ },
1675
+ "primary": ["111788850420", "111788850419"],
1676
+ "openInterest": ["6056751659999999975424", "6061823234999999975424"],
1677
+ "openInterestInTokens": ["18701110", "18717333"],
1678
+ "openInterestByCollateral": [
1679
+ ["3028375829999999987712", "3028375829999999987712"],
1680
+ ["3030911617499999987712", "3030911617499999987712"]
1681
+ ],
1682
+ "positionImpactPoolAmount": "111487979",
1683
+ "borrowingFactor": ["1607675184682495578", "1909196030424829328"],
1684
+ "fundingFeeAmountPerSize": [
1685
+ ["595890841683666", "595890841683666"],
1686
+ ["278710001916504", "278710001916504"]
1687
+ ],
1688
+ "claimableFundingAmountPerSize": [
1689
+ ["30954308525403567", "30954308525403567"],
1690
+ ["43136815861096206", "43136815861096206"]
1691
+ ],
1692
+ "totalBorrowing": ["32330312498763253171", "37226293622041264235"],
1693
+ "priceImpactDistributionClock": 1791316786,
1694
+ "borrowingClock": 1791316786,
1695
+ "fundingClock": 1791316786,
1696
+ "fundingFactorPerSecond": "-244210492289",
1697
+ "config": {
1698
+ "openInterestReserveFactor": "300000000000000000000",
1699
+ "reserveFactor": "305000000000000000000",
1700
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1701
+ "positionImpactDistributeFactor": "1840900000000000000000000",
1702
+ "minPositionImpactPoolAmount": "100000000",
1703
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1704
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1705
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1706
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1707
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1708
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1709
+ }
1710
+ },
1711
+ "prices": {
1712
+ "index": {
1713
+ "min": "333650000000000",
1714
+ "max": "333650000000000",
1715
+ "isOpen": false,
1716
+ "ts": 1791317683
1717
+ },
1718
+ "long": {
1719
+ "min": "99984800000000",
1720
+ "max": "99993900000000",
1721
+ "isOpen": true,
1722
+ "ts": 0
1723
+ },
1724
+ "short": {
1725
+ "min": "99984800000000",
1726
+ "max": "99993900000000",
1727
+ "isOpen": true,
1728
+ "ts": 0
1729
+ }
1730
+ },
1731
+ "expected": {
1732
+ "fundingRatePerSecondForLong": "-244414980089",
1733
+ "fundingRatePerSecondForShort": "244210492289",
1734
+ "liquidityForLong": "33525317929069348000000000",
1735
+ "liquidityForShort": "33525495730885893600024576",
1736
+ "openInterestForLong": "6056751659999999975424",
1737
+ "openInterestForShort": "6061823234999999975424"
1738
+ }
1739
+ },
1740
+ {
1741
+ "name": "BOME/USD[BOME-USDC]",
1742
+ "market": {
1743
+ "name": "BOME/USD[BOME-USDC]",
1744
+ "marketTokenMint": "9WTdN24Fm2AjKdMeWZLJwVs8B9dE3NhoajXu9EtWdWC4",
1745
+ "longTokenMint": "ukHH6c7mMyiWCf1b9pnWe25TSpkDDt3H5pQZgZ74J82",
1746
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1747
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1748
+ "skipBorrowingFeeForSmallerSide": true,
1749
+ "ignoreOpenInterestForUsageFactor": false,
1750
+ "borrowingFeeFactor": ["158548959918800", "158548959918800"],
1751
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1752
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1753
+ "borrowingFeeBaseFactor": ["158548959918800", "158548959918800"],
1754
+ "borrowingFeeAboveOptimalUsageFactor": ["317097919837600", "317097919837600"],
1755
+ "maxOpenInterest": ["0", "0"],
1756
+ "funding": {
1757
+ "exponent": "100000000000000000000",
1758
+ "factor": "2000000000000",
1759
+ "maxFactorPerSecond": "2853881278748",
1760
+ "minFactorPerSecond": "31709791983",
1761
+ "increaseFactorPerSecond": "264248266",
1762
+ "decreaseFactorPerSecond": "0",
1763
+ "thresholdForStableFunding": "4000000000000000000",
1764
+ "thresholdForDecreaseFunding": "0"
1765
+ },
1766
+ "primary": ["7297735167", "2013044"],
1767
+ "openInterest": ["0", "0"],
1768
+ "openInterestInTokens": ["0", "0"],
1769
+ "openInterestByCollateral": [
1770
+ ["0", "0"],
1771
+ ["0", "0"]
1772
+ ],
1773
+ "positionImpactPoolAmount": "0",
1774
+ "borrowingFactor": ["0", "1107151704796321"],
1775
+ "fundingFeeAmountPerSize": [
1776
+ ["0", "0"],
1777
+ ["0", "0"]
1778
+ ],
1779
+ "claimableFundingAmountPerSize": [
1780
+ ["0", "0"],
1781
+ ["0", "0"]
1782
+ ],
1783
+ "totalBorrowing": ["0", "0"],
1784
+ "priceImpactDistributionClock": 1772425072,
1785
+ "borrowingClock": 1772425072,
1786
+ "fundingClock": 1772425072,
1787
+ "fundingFactorPerSecond": "0",
1788
+ "config": {
1789
+ "openInterestReserveFactor": "120000000000000000000",
1790
+ "reserveFactor": "125000000000000000000",
1791
+ "borrowingFeeReceiverFactor": "25000000000000000000",
1792
+ "positionImpactDistributeFactor": "1799600000000000000000000",
1793
+ "minPositionImpactPoolAmount": "0",
1794
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1795
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1796
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1797
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1798
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1799
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1800
+ }
1801
+ },
1802
+ "prices": {
1803
+ "index": {
1804
+ "min": "99540100000",
1805
+ "max": "99645260000",
1806
+ "isOpen": true,
1807
+ "ts": 1791317683
1808
+ },
1809
+ "long": {
1810
+ "min": "99540100000",
1811
+ "max": "99645260000",
1812
+ "isOpen": true,
1813
+ "ts": 0
1814
+ },
1815
+ "short": {
1816
+ "min": "99984800000000",
1817
+ "max": "99993900000000",
1818
+ "isOpen": true,
1819
+ "ts": 0
1820
+ }
1821
+ },
1822
+ "expected": {
1823
+ "fundingRatePerSecondForLong": "0",
1824
+ "fundingRatePerSecondForShort": "0",
1825
+ "liquidityForLong": "0",
1826
+ "liquidityForShort": "0",
1827
+ "openInterestForLong": "0",
1828
+ "openInterestForShort": "0"
1829
+ }
1830
+ }
1831
+ ]
1832
+ },
1833
+ "positions": {
1834
+ "now": 1793369776,
1835
+ "markets": [
1836
+ {
1837
+ "name": "LINK/USD[WSOL-USDC]",
1838
+ "market": {
1839
+ "name": "LINK/USD[WSOL-USDC]",
1840
+ "marketTokenMint": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
1841
+ "longTokenMint": "So11111111111111111111111111111111111111112",
1842
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1843
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1844
+ "skipBorrowingFeeForSmallerSide": true,
1845
+ "ignoreOpenInterestForUsageFactor": false,
1846
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
1847
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1848
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1849
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
1850
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1851
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
1852
+ "funding": {
1853
+ "exponent": "100000000000000000000",
1854
+ "factor": "2000000000000",
1855
+ "maxFactorPerSecond": "2853881278538",
1856
+ "minFactorPerSecond": "31709791983",
1857
+ "increaseFactorPerSecond": "246248266",
1858
+ "decreaseFactorPerSecond": "0",
1859
+ "thresholdForStableFunding": "4000000000000000000",
1860
+ "thresholdForDecreaseFunding": "0"
1861
+ },
1862
+ "primary": ["4630269752161", "426476170187"],
1863
+ "openInterest": ["4514755010660846442298576", "5408161409924646537997568"],
1864
+ "openInterestInTokens": ["415906284843", "486472577298"],
1865
+ "openInterestByCollateral": [
1866
+ ["81215376334489355323600", "4433539634326357086974976"],
1867
+ ["330000000000000000000000", "5078161409924646537997568"]
1868
+ ],
1869
+ "positionImpactPoolAmount": "1999203656",
1870
+ "borrowingFactor": ["13633352433663977370", "15028678876989010458"],
1871
+ "fundingFeeAmountPerSize": [
1872
+ ["18764342393232472", "6256040940116396"],
1873
+ ["21938060684105861", "17955598532733369"]
1874
+ ],
1875
+ "claimableFundingAmountPerSize": [
1876
+ ["354906050145873548", "257466825518868373"],
1877
+ ["479060750268858359", "370206532243595770"]
1878
+ ],
1879
+ "totalBorrowing": ["615036733044053854448261", "812732401612694506124073"],
1880
+ "priceImpactDistributionClock": 1793369250,
1881
+ "borrowingClock": 1793369250,
1882
+ "fundingClock": 1793369250,
1883
+ "fundingFactorPerSecond": "-116419280952",
1884
+ "config": {
1885
+ "openInterestReserveFactor": "200000000000000000000",
1886
+ "reserveFactor": "205000000000000000000",
1887
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1888
+ "positionImpactDistributeFactor": "134036900000000000000000000",
1889
+ "minPositionImpactPoolAmount": "2000000000",
1890
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1891
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1892
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1893
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1894
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1895
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1896
+ }
1897
+ },
1898
+ "prices": {
1899
+ "index": {
1900
+ "min": "10914830105101",
1901
+ "max": "10917730035034"
1902
+ },
1903
+ "long": {
1904
+ "min": "9426857683730",
1905
+ "max": "9428531069629"
1906
+ },
1907
+ "short": {
1908
+ "min": "99966953550792",
1909
+ "max": "99966953550792"
1910
+ }
1911
+ },
1912
+ "expected": {
1913
+ "tradeCount": "99566",
1914
+ "fundingFeeAmountPerSize": [
1915
+ ["18764342393232472", "6256040940116396"],
1916
+ ["21938060684105861", "17955598532733369"]
1917
+ ],
1918
+ "claimableFundingAmountPerSize": [
1919
+ ["354906050145873548", "257466825518868373"],
1920
+ ["479060750268858359", "370206532243595770"]
1921
+ ]
1922
+ }
1923
+ },
1924
+ {
1925
+ "name": "BNB/USD[WSOL-USDC]",
1926
+ "market": {
1927
+ "name": "BNB/USD[WSOL-USDC]",
1928
+ "marketTokenMint": "J42dzcHkgmzU7MARv7k29TrkKaGQ1j2mTaYjkBkN7pn5",
1929
+ "longTokenMint": "So11111111111111111111111111111111111111112",
1930
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
1931
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
1932
+ "skipBorrowingFeeForSmallerSide": true,
1933
+ "ignoreOpenInterestForUsageFactor": false,
1934
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
1935
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
1936
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
1937
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
1938
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
1939
+ "maxOpenInterest": ["200000000000000000000000000", "200000000000000000000000000"],
1940
+ "funding": {
1941
+ "exponent": "100000000000000000000",
1942
+ "factor": "2000000000000",
1943
+ "maxFactorPerSecond": "2378234398782",
1944
+ "minFactorPerSecond": "31709791983",
1945
+ "increaseFactorPerSecond": "220206888",
1946
+ "decreaseFactorPerSecond": "0",
1947
+ "thresholdForStableFunding": "4000000000000000000",
1948
+ "thresholdForDecreaseFunding": "0"
1949
+ },
1950
+ "primary": ["4716594306083", "444242523458"],
1951
+ "openInterest": ["5546604091160441893584520", "5500696916858611154457672"],
1952
+ "openInterestInTokens": ["8041171909", "7675728337"],
1953
+ "openInterestByCollateral": [
1954
+ ["0", "5546604091160441893584520"],
1955
+ ["0", "5500696916858611154457672"]
1956
+ ],
1957
+ "positionImpactPoolAmount": "49984818",
1958
+ "borrowingFactor": ["9426532663363405545", "12435674599202770603"],
1959
+ "fundingFeeAmountPerSize": [
1960
+ ["9997580973151142", "4511566406912841"],
1961
+ ["15500192750804407", "3153304156699717"]
1962
+ ],
1963
+ "claimableFundingAmountPerSize": [
1964
+ ["79025507316882613", "97672345735073322"],
1965
+ ["165294618750708910", "88399340750634285"]
1966
+ ],
1967
+ "totalBorrowing": ["508191053114455792496720", "684024270717351713400413"],
1968
+ "priceImpactDistributionClock": 1793368959,
1969
+ "borrowingClock": 1793368959,
1970
+ "fundingClock": 1793368959,
1971
+ "fundingFactorPerSecond": "493003481108",
1972
+ "config": {
1973
+ "openInterestReserveFactor": "250000000000000000000",
1974
+ "reserveFactor": "255000000000000000000",
1975
+ "borrowingFeeReceiverFactor": "99000000000000000000",
1976
+ "positionImpactDistributeFactor": "278000000000000000000000",
1977
+ "minPositionImpactPoolAmount": "50000000",
1978
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
1979
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
1980
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
1981
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
1982
+ "maxPnlFactorForLongTrader": "90000000000000000000",
1983
+ "maxPnlFactorForShortTrader": "90000000000000000000"
1984
+ }
1985
+ },
1986
+ "prices": {
1987
+ "index": {
1988
+ "min": "692919698648592",
1989
+ "max": "693096653677439"
1990
+ },
1991
+ "long": {
1992
+ "min": "9426857683730",
1993
+ "max": "9428531069629"
1994
+ },
1995
+ "short": {
1996
+ "min": "99966953550792",
1997
+ "max": "99966953550792"
1998
+ }
1999
+ },
2000
+ "expected": {
2001
+ "tradeCount": "93839",
2002
+ "fundingFeeAmountPerSize": [
2003
+ ["9997580973151142", "4511566406912841"],
2004
+ ["15500192750804407", "3153304156699717"]
2005
+ ],
2006
+ "claimableFundingAmountPerSize": [
2007
+ ["79025507316882613", "97672345735073322"],
2008
+ ["165294618750708910", "88399340750634285"]
2009
+ ]
2010
+ }
2011
+ },
2012
+ {
2013
+ "name": "SOL/USD[USDC-USDC]",
2014
+ "market": {
2015
+ "name": "SOL/USD[USDC-USDC]",
2016
+ "marketTokenMint": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
2017
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2018
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2019
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2020
+ "skipBorrowingFeeForSmallerSide": true,
2021
+ "ignoreOpenInterestForUsageFactor": false,
2022
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
2023
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
2024
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
2025
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
2026
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
2027
+ "maxOpenInterest": ["2499999999999999895779934208", "2499999999999999895779934208"],
2028
+ "funding": {
2029
+ "exponent": "100000000000000000000",
2030
+ "factor": "2000000000000",
2031
+ "maxFactorPerSecond": "2378234398782",
2032
+ "minFactorPerSecond": "31709791983",
2033
+ "increaseFactorPerSecond": "220206888",
2034
+ "decreaseFactorPerSecond": "0",
2035
+ "thresholdForStableFunding": "4000000000000000000",
2036
+ "thresholdForDecreaseFunding": "0"
2037
+ },
2038
+ "primary": ["392202984671", "392202984671"],
2039
+ "openInterest": ["60700334840015382678263599", "62075390181418426378493243"],
2040
+ "openInterestInTokens": ["6437309852949", "6500860101349"],
2041
+ "openInterestByCollateral": [
2042
+ ["30350167420007691339131800", "30350167420007691339131799"],
2043
+ ["31037695090709213189246622", "31037695090709213189246621"]
2044
+ ],
2045
+ "positionImpactPoolAmount": "2991731296",
2046
+ "borrowingFactor": ["9031058160118034877", "11023661256725092346"],
2047
+ "fundingFeeAmountPerSize": [
2048
+ ["8600939100138481", "8600939100138481"],
2049
+ ["160003213057450141", "160003213057450141"]
2050
+ ],
2051
+ "claimableFundingAmountPerSize": [
2052
+ ["168123756556196818", "168123756556196818"],
2053
+ ["87874492356857599", "87874492356857599"]
2054
+ ],
2055
+ "totalBorrowing": ["5430494520021808520947851", "6801039960029087965143995"],
2056
+ "priceImpactDistributionClock": 1793369759,
2057
+ "borrowingClock": 1793369759,
2058
+ "fundingClock": 1793369759,
2059
+ "fundingFactorPerSecond": "664572960821",
2060
+ "config": {
2061
+ "openInterestReserveFactor": "450000000000000000000",
2062
+ "reserveFactor": "455000000000000000000",
2063
+ "borrowingFeeReceiverFactor": "99000000000000000000",
2064
+ "positionImpactDistributeFactor": "353982000000000000000000000",
2065
+ "minPositionImpactPoolAmount": "3000000000",
2066
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
2067
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
2068
+ "maxPnlFactorForLongWithdrawal": "69999999999999991808",
2069
+ "maxPnlFactorForShortWithdrawal": "69999999999999991808",
2070
+ "maxPnlFactorForLongTrader": "90000000000000000000",
2071
+ "maxPnlFactorForShortTrader": "90000000000000000000"
2072
+ }
2073
+ },
2074
+ "prices": {
2075
+ "index": {
2076
+ "min": "9426857683730",
2077
+ "max": "9428531069629"
2078
+ },
2079
+ "long": {
2080
+ "min": "99966953550792",
2081
+ "max": "99966953550792"
2082
+ },
2083
+ "short": {
2084
+ "min": "99966953550792",
2085
+ "max": "99966953550792"
2086
+ }
2087
+ },
2088
+ "expected": {
2089
+ "tradeCount": "719449",
2090
+ "fundingFeeAmountPerSize": [
2091
+ ["8600939100138481", "8600939100138481"],
2092
+ ["160003213057450141", "160003213057450141"]
2093
+ ],
2094
+ "claimableFundingAmountPerSize": [
2095
+ ["168123756556196818", "168123756556196818"],
2096
+ ["87874492356857599", "87874492356857599"]
2097
+ ]
2098
+ }
2099
+ },
2100
+ {
2101
+ "name": "BTC/USD[USDC-USDC]",
2102
+ "market": {
2103
+ "name": "BTC/USD[USDC-USDC]",
2104
+ "marketTokenMint": "Dqq58gS1TgRMDouUbdvhhzc51XXTNHG921WLxH9X2eB8",
2105
+ "longTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2106
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2107
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2108
+ "skipBorrowingFeeForSmallerSide": true,
2109
+ "ignoreOpenInterestForUsageFactor": false,
2110
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
2111
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
2112
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
2113
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
2114
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
2115
+ "maxOpenInterest": ["2499999999999999895779934208", "2499999999999999895779934208"],
2116
+ "funding": {
2117
+ "exponent": "100000000000000000000",
2118
+ "factor": "2000000000000",
2119
+ "maxFactorPerSecond": "475646879000",
2120
+ "minFactorPerSecond": "31709791983",
2121
+ "increaseFactorPerSecond": "44041378",
2122
+ "decreaseFactorPerSecond": "0",
2123
+ "thresholdForStableFunding": "4000000000000000000",
2124
+ "thresholdForDecreaseFunding": "0"
2125
+ },
2126
+ "primary": ["481994657817", "481994657816"],
2127
+ "openInterest": ["105278067745996092219432910", "111629357110609753748121412"],
2128
+ "openInterestInTokens": ["1369416610", "1425362820"],
2129
+ "openInterestByCollateral": [
2130
+ ["52639033872998046109716455", "52639033872998046109716455"],
2131
+ ["55814678555304876874060706", "55814678555304876874060706"]
2132
+ ],
2133
+ "positionImpactPoolAmount": "398423",
2134
+ "borrowingFactor": ["9846937465422561029", "12983655873682279449"],
2135
+ "fundingFeeAmountPerSize": [
2136
+ ["2716642847744483", "2716642847744483"],
2137
+ ["7114694830969815", "7114694830969815"]
2138
+ ],
2139
+ "claimableFundingAmountPerSize": [
2140
+ ["4225200065419551", "4225200065419551"],
2141
+ ["130803151918260868", "130803151918260868"]
2142
+ ],
2143
+ "totalBorrowing": ["10302594796307988822179866", "14476389956304380722253582"],
2144
+ "priceImpactDistributionClock": 1793369766,
2145
+ "borrowingClock": 1793369766,
2146
+ "fundingClock": 1793369766,
2147
+ "fundingFactorPerSecond": "-473461948570",
2148
+ "config": {
2149
+ "openInterestReserveFactor": "550000000000000000000",
2150
+ "reserveFactor": "555000000000000000000",
2151
+ "borrowingFeeReceiverFactor": "99000000000000000000",
2152
+ "positionImpactDistributeFactor": "10600000000000000000000",
2153
+ "minPositionImpactPoolAmount": "400000",
2154
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
2155
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
2156
+ "maxPnlFactorForLongWithdrawal": "69999999999999991808",
2157
+ "maxPnlFactorForShortWithdrawal": "69999999999999991808",
2158
+ "maxPnlFactorForLongTrader": "90000000000000000000",
2159
+ "maxPnlFactorForShortTrader": "90000000000000000000"
2160
+ }
2161
+ },
2162
+ "prices": {
2163
+ "index": {
2164
+ "min": "76630836968676315",
2165
+ "max": "76630836968676315"
2166
+ },
2167
+ "long": {
2168
+ "min": "99966953550792",
2169
+ "max": "99966953550792"
2170
+ },
2171
+ "short": {
2172
+ "min": "99966953550792",
2173
+ "max": "99966953550792"
2174
+ }
2175
+ },
2176
+ "expected": {
2177
+ "tradeCount": "350284",
2178
+ "fundingFeeAmountPerSize": [
2179
+ ["2716642847744483", "2716642847744483"],
2180
+ ["7114694830969815", "7114694830969815"]
2181
+ ],
2182
+ "claimableFundingAmountPerSize": [
2183
+ ["4225200065419551", "4225200065419551"],
2184
+ ["130803151918260868", "130803151918260868"]
2185
+ ]
2186
+ }
2187
+ },
2188
+ {
2189
+ "name": "BONK/USD[WSOL-USDC]",
2190
+ "market": {
2191
+ "name": "BONK/USD[WSOL-USDC]",
2192
+ "marketTokenMint": "BvC73rarCMrhEnk3JmqaLntpnrwfUCR5eTrf7HQu6ieg",
2193
+ "longTokenMint": "So11111111111111111111111111111111111111112",
2194
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2195
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2196
+ "skipBorrowingFeeForSmallerSide": true,
2197
+ "ignoreOpenInterestForUsageFactor": false,
2198
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
2199
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
2200
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
2201
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
2202
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
2203
+ "maxOpenInterest": ["100000000000000000000000000", "100000000000000000000000000"],
2204
+ "funding": {
2205
+ "exponent": "100000000000000000000",
2206
+ "factor": "2000000000000",
2207
+ "maxFactorPerSecond": "2853881278538",
2208
+ "minFactorPerSecond": "31709791983",
2209
+ "increaseFactorPerSecond": "246248266",
2210
+ "decreaseFactorPerSecond": "0",
2211
+ "thresholdForStableFunding": "4000000000000000000",
2212
+ "thresholdForDecreaseFunding": "0"
2213
+ },
2214
+ "primary": ["403478878511", "37439956759"],
2215
+ "openInterest": ["105878000096508770967527", "678434478201953090437120"],
2216
+ "openInterestInTokens": ["34391259533995", "231157875108909"],
2217
+ "openInterestByCollateral": [
2218
+ ["0", "105878000096508770967527"],
2219
+ ["0", "678434478201953090437120"]
2220
+ ],
2221
+ "positionImpactPoolAmount": "10367261657708",
2222
+ "borrowingFactor": ["8008397271293830730", "7152360739064969415"],
2223
+ "fundingFeeAmountPerSize": [
2224
+ ["165374084389288007", "5127089961221305"],
2225
+ ["10008592268794008", "14122582162246012"]
2226
+ ],
2227
+ "claimableFundingAmountPerSize": [
2228
+ ["77020156680915578", "453540919591110485"],
2229
+ ["1230828007486289956", "371740885178802636"]
2230
+ ],
2231
+ "totalBorrowing": ["8470041096961529608324", "48519172885504179934536"],
2232
+ "priceImpactDistributionClock": 1793368385,
2233
+ "borrowingClock": 1793368385,
2234
+ "fundingClock": 1793368385,
2235
+ "fundingFactorPerSecond": "1324453150629",
2236
+ "config": {
2237
+ "openInterestReserveFactor": "200000000000000000000",
2238
+ "reserveFactor": "205000000000000000000",
2239
+ "borrowingFeeReceiverFactor": "99000000000000000000",
2240
+ "positionImpactDistributeFactor": "0",
2241
+ "minPositionImpactPoolAmount": "50000000",
2242
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
2243
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
2244
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
2245
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
2246
+ "maxPnlFactorForLongTrader": "90000000000000000000",
2247
+ "maxPnlFactorForShortTrader": "90000000000000000000"
2248
+ }
2249
+ },
2250
+ "prices": {
2251
+ "index": {
2252
+ "min": "2900546344",
2253
+ "max": "2903232653"
2254
+ },
2255
+ "long": {
2256
+ "min": "9426857683730",
2257
+ "max": "9428531069629"
2258
+ },
2259
+ "short": {
2260
+ "min": "99966953550792",
2261
+ "max": "99966953550792"
2262
+ }
2263
+ },
2264
+ "expected": {
2265
+ "tradeCount": "34163",
2266
+ "fundingFeeAmountPerSize": [
2267
+ ["165374084389288007", "5127089961221305"],
2268
+ ["10008592268794008", "14122582162246012"]
2269
+ ],
2270
+ "claimableFundingAmountPerSize": [
2271
+ ["77020156680915578", "453540919591110485"],
2272
+ ["1230828007486289956", "371740885178802636"]
2273
+ ]
2274
+ }
2275
+ },
2276
+ {
2277
+ "name": "DOGE/USD[WSOL-USDC]",
2278
+ "market": {
2279
+ "name": "DOGE/USD[WSOL-USDC]",
2280
+ "marketTokenMint": "BjEpsvvjca1cQ6KGaeULn6sp8hPsP7XhRvUhepPX181c",
2281
+ "longTokenMint": "So11111111111111111111111111111111111111112",
2282
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2283
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2284
+ "skipBorrowingFeeForSmallerSide": true,
2285
+ "ignoreOpenInterestForUsageFactor": false,
2286
+ "borrowingFeeFactor": ["1426940639269", "1426940639269"],
2287
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
2288
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
2289
+ "borrowingFeeBaseFactor": ["1426940639269", "1426940639269"],
2290
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
2291
+ "maxOpenInterest": ["200000000000000000000000000", "200000000000000000000000000"],
2292
+ "funding": {
2293
+ "exponent": "100000000000000000000",
2294
+ "factor": "2000000000000",
2295
+ "maxFactorPerSecond": "2378234398782",
2296
+ "minFactorPerSecond": "31709791983",
2297
+ "increaseFactorPerSecond": "220206888",
2298
+ "decreaseFactorPerSecond": "0",
2299
+ "thresholdForStableFunding": "4000000000000000000",
2300
+ "thresholdForDecreaseFunding": "0"
2301
+ },
2302
+ "primary": ["4304413341810", "430890359443"],
2303
+ "openInterest": ["3994005710827292346522624", "4223036320604161865591088"],
2304
+ "openInterestInTokens": ["53080689413223", "55339392506335"],
2305
+ "openInterestByCollateral": [
2306
+ ["0", "3994005710827292346522624"],
2307
+ ["0", "4223036320604161865591088"]
2308
+ ],
2309
+ "positionImpactPoolAmount": "272234136455",
2310
+ "borrowingFactor": ["10397814044693897607", "13559682379906678074"],
2311
+ "fundingFeeAmountPerSize": [
2312
+ ["7137162991574266", "5569722506332744"],
2313
+ ["9958401482421925", "3974603910047210"]
2314
+ ],
2315
+ "claimableFundingAmountPerSize": [
2316
+ ["615704847445934970", "181360499458691509"],
2317
+ ["119908415127267532", "100978176019431959"]
2318
+ ],
2319
+ "totalBorrowing": ["415277398800089032740234", "572523410906379997110771"],
2320
+ "priceImpactDistributionClock": 1793368690,
2321
+ "borrowingClock": 1793369683,
2322
+ "fundingClock": 1793368690,
2323
+ "fundingFactorPerSecond": "1411470567286",
2324
+ "config": {
2325
+ "openInterestReserveFactor": "200000000000000000000",
2326
+ "reserveFactor": "205000000000000000000",
2327
+ "borrowingFeeReceiverFactor": "99000000000000000000",
2328
+ "positionImpactDistributeFactor": "8956713000000000000000000000",
2329
+ "minPositionImpactPoolAmount": "272700000000",
2330
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
2331
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
2332
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
2333
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
2334
+ "maxPnlFactorForLongTrader": "90000000000000000000",
2335
+ "maxPnlFactorForShortTrader": "90000000000000000000"
2336
+ }
2337
+ },
2338
+ "prices": {
2339
+ "index": {
2340
+ "min": "74831280915",
2341
+ "max": "74852363205"
2342
+ },
2343
+ "long": {
2344
+ "min": "9426857683730",
2345
+ "max": "9428531069629"
2346
+ },
2347
+ "short": {
2348
+ "min": "99966953550792",
2349
+ "max": "99966953550792"
2350
+ }
2351
+ },
2352
+ "expected": {
2353
+ "tradeCount": "136660",
2354
+ "fundingFeeAmountPerSize": [
2355
+ ["7137162991574266", "5569722506332744"],
2356
+ ["9958401482421925", "3974603910047210"]
2357
+ ],
2358
+ "claimableFundingAmountPerSize": [
2359
+ ["615704847445934970", "181360499458691509"],
2360
+ ["119908415127267532", "100978176019431959"]
2361
+ ]
2362
+ }
2363
+ },
2364
+ {
2365
+ "name": "LTC/USD[WSOL-USDC]",
2366
+ "market": {
2367
+ "name": "LTC/USD[WSOL-USDC]",
2368
+ "marketTokenMint": "527jUvh7guN8Fip96TeJhKWreeWdcwD9CFFwXG9mTiHQ",
2369
+ "longTokenMint": "So11111111111111111111111111111111111111112",
2370
+ "shortTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2371
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2372
+ "skipBorrowingFeeForSmallerSide": true,
2373
+ "ignoreOpenInterestForUsageFactor": false,
2374
+ "borrowingFeeFactor": ["1585489599188", "1585489599188"],
2375
+ "borrowingFeeExponent": ["100000000000000000000", "100000000000000000000"],
2376
+ "borrowingFeeOptimalUsageFactor": ["75000000000000000000", "75000000000000000000"],
2377
+ "borrowingFeeBaseFactor": ["1585489599188", "1585489599188"],
2378
+ "borrowingFeeAboveOptimalUsageFactor": ["3170979198376", "3170979198376"],
2379
+ "maxOpenInterest": ["150000000000000000000000000", "150000000000000000000000000"],
2380
+ "funding": {
2381
+ "exponent": "100000000000000000000",
2382
+ "factor": "2000000000000",
2383
+ "maxFactorPerSecond": "2853881278538",
2384
+ "minFactorPerSecond": "31709791983",
2385
+ "increaseFactorPerSecond": "246248266",
2386
+ "decreaseFactorPerSecond": "0",
2387
+ "thresholdForStableFunding": "4000000000000000000",
2388
+ "thresholdForDecreaseFunding": "0"
2389
+ },
2390
+ "primary": ["297209259270", "29696307495"],
2391
+ "openInterest": ["1117362094724552973832275", "587973045663866488625674"],
2392
+ "openInterestInTokens": ["20223381001", "10554347524"],
2393
+ "openInterestByCollateral": [
2394
+ ["0", "1117362094724552973832275"],
2395
+ ["164407646943414118952240", "423565398720452369673434"]
2396
+ ],
2397
+ "positionImpactPoolAmount": "657256373",
2398
+ "borrowingFactor": ["9649466018643167131", "10928846667458943412"],
2399
+ "fundingFeeAmountPerSize": [
2400
+ ["23306364036950770", "9749374940687671"],
2401
+ ["27931604925450753", "9221145729587939"]
2402
+ ],
2403
+ "claimableFundingAmountPerSize": [
2404
+ ["94355559200498980", "137757215124012739"],
2405
+ ["331337369785838462", "258959983796007718"]
2406
+ ],
2407
+ "totalBorrowing": ["107691933081533187299446", "64248004960614169169771"],
2408
+ "priceImpactDistributionClock": 1793360502,
2409
+ "borrowingClock": 1793360502,
2410
+ "fundingClock": 1793360502,
2411
+ "fundingFactorPerSecond": "2853881278538",
2412
+ "config": {
2413
+ "openInterestReserveFactor": "200000000000000000000",
2414
+ "reserveFactor": "205000000000000000000",
2415
+ "borrowingFeeReceiverFactor": "99000000000000000000",
2416
+ "positionImpactDistributeFactor": "7931700000000000000000000",
2417
+ "minPositionImpactPoolAmount": "700000000",
2418
+ "maxPnlFactorForLongDeposit": "90000000000000000000",
2419
+ "maxPnlFactorForShortDeposit": "90000000000000000000",
2420
+ "maxPnlFactorForLongWithdrawal": "70000000000000000000",
2421
+ "maxPnlFactorForShortWithdrawal": "70000000000000000000",
2422
+ "maxPnlFactorForLongTrader": "90000000000000000000",
2423
+ "maxPnlFactorForShortTrader": "90000000000000000000"
2424
+ }
2425
+ },
2426
+ "prices": {
2427
+ "index": {
2428
+ "min": "54832714592767",
2429
+ "max": "54849759310269"
2430
+ },
2431
+ "long": {
2432
+ "min": "9426857683730",
2433
+ "max": "9428531069629"
2434
+ },
2435
+ "short": {
2436
+ "min": "99966953550792",
2437
+ "max": "99966953550792"
2438
+ }
2439
+ },
2440
+ "expected": {
2441
+ "tradeCount": "26583",
2442
+ "fundingFeeAmountPerSize": [
2443
+ ["23306364036950770", "9749374940687671"],
2444
+ ["27931604925450753", "9221145729587939"]
2445
+ ],
2446
+ "claimableFundingAmountPerSize": [
2447
+ ["94355559200498980", "137757215124012739"],
2448
+ ["331337369785838462", "258959983796007718"]
2449
+ ]
2450
+ }
2451
+ }
2452
+ ],
2453
+ "positions": [
2454
+ {
2455
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] long, long-token collateral",
2456
+ "market": "LINK/USD[WSOL-USDC]",
2457
+ "position": {
2458
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2459
+ "owner": "9XUH3oy5kjA4UjFeB7RM6bGJCWeWN6GPYAKVmrKRVaYz",
2460
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2461
+ "collateralToken": "So11111111111111111111111111111111111111112",
2462
+ "kind": 1,
2463
+ "isLong": true,
2464
+ "createdAt": 1793369244,
2465
+ "tradeId": "99566",
2466
+ "increasedAt": 1793369250,
2467
+ "updatedAtSlot": "463313024",
2468
+ "decreasedAt": 0,
2469
+ "sizeInTokens": "6914715252",
2470
+ "collateralAmount": "398970753",
2471
+ "sizeInUsd": "75976386901010499323600",
2472
+ "borrowingFactor": "13633352433663977370",
2473
+ "fundingFeeAmountPerSize": "18764342393232472",
2474
+ "longTokenClaimableFundingAmountPerSize": "354906050145873548",
2475
+ "shortTokenClaimableFundingAmountPerSize": "257466825518868373",
2476
+ "reservedInUse": false
2477
+ },
2478
+ "expected": {
2479
+ "borrowingFeeValue": "0",
2480
+ "claimableLongTokenAmount": "396",
2481
+ "claimableShortTokenAmount": "575",
2482
+ "fundingFeeAmount": "0"
2483
+ }
2484
+ },
2485
+ {
2486
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] long, short-token collateral",
2487
+ "market": "LINK/USD[WSOL-USDC]",
2488
+ "position": {
2489
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2490
+ "owner": "C8GZZ77oe38E5ffDj3vh3wmBZuE9av1CFxdvUjzABd6P",
2491
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2492
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2493
+ "kind": 1,
2494
+ "isLong": true,
2495
+ "createdAt": 1793332964,
2496
+ "tradeId": "99556",
2497
+ "increasedAt": 1793338401,
2498
+ "updatedAtSlot": "463168501",
2499
+ "decreasedAt": 1793336538,
2500
+ "sizeInTokens": "70501814817",
2501
+ "collateralAmount": "262888371",
2502
+ "sizeInUsd": "775453869210755234004992",
2503
+ "borrowingFactor": "13630603234580459791",
2504
+ "fundingFeeAmountPerSize": "6256040940116396",
2505
+ "longTokenClaimableFundingAmountPerSize": "354905837930393872",
2506
+ "shortTokenClaimableFundingAmountPerSize": "257466537861914944",
2507
+ "reservedInUse": false
2508
+ },
2509
+ "expected": {
2510
+ "borrowingFeeValue": "21318770665443688612",
2511
+ "claimableLongTokenAmount": "168613",
2512
+ "claimableShortTokenAmount": "228942",
2513
+ "fundingFeeAmount": "0"
2514
+ }
2515
+ },
2516
+ {
2517
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] short, long-token collateral",
2518
+ "market": "LINK/USD[WSOL-USDC]",
2519
+ "position": {
2520
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2521
+ "owner": "B2NpZ7W5LX1gYs7exjrMUqmrP7XxiSaVVZYAfthHTNet",
2522
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2523
+ "collateralToken": "So11111111111111111111111111111111111111112",
2524
+ "kind": 2,
2525
+ "isLong": false,
2526
+ "createdAt": 1793265355,
2527
+ "tradeId": "98917",
2528
+ "increasedAt": 1793265360,
2529
+ "updatedAtSlot": "462827067",
2530
+ "decreasedAt": 0,
2531
+ "sizeInTokens": "28709737021",
2532
+ "collateralAmount": "4106937711",
2533
+ "sizeInUsd": "330000000000000000000000",
2534
+ "borrowingFactor": "15022177149777735427",
2535
+ "fundingFeeAmountPerSize": "21928161080164642",
2536
+ "longTokenClaimableFundingAmountPerSize": "479056600466479565",
2537
+ "shortTokenClaimableFundingAmountPerSize": "370204229772802388",
2538
+ "reservedInUse": false
2539
+ },
2540
+ "expected": {
2541
+ "borrowingFeeValue": "21630254479853444700",
2542
+ "claimableLongTokenAmount": "1369434",
2543
+ "claimableShortTokenAmount": "759815",
2544
+ "fundingFeeAmount": "3290450"
2545
+ }
2546
+ },
2547
+ {
2548
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] short, short-token collateral",
2549
+ "market": "LINK/USD[WSOL-USDC]",
2550
+ "position": {
2551
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2552
+ "owner": "BDaPGURpmaHbSK6MPV11fLAEQSVLNxsjuKxr8wvPjc6Q",
2553
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2554
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2555
+ "kind": 2,
2556
+ "isLong": false,
2557
+ "createdAt": 1793337169,
2558
+ "tradeId": "99550",
2559
+ "increasedAt": 1793337184,
2560
+ "updatedAtSlot": "463162812",
2561
+ "decreasedAt": 0,
2562
+ "sizeInTokens": "146291018242",
2563
+ "collateralAmount": "406004312",
2564
+ "sizeInUsd": "1625929977606773902671872",
2565
+ "borrowingFactor": "15028472833897584121",
2566
+ "fundingFeeAmountPerSize": "17955262475959875",
2567
+ "longTokenClaimableFundingAmountPerSize": "479060750268858359",
2568
+ "shortTokenClaimableFundingAmountPerSize": "370206532243595770",
2569
+ "reservedInUse": false
2570
+ },
2571
+ "expected": {
2572
+ "borrowingFeeValue": "4210157878911309677",
2573
+ "claimableLongTokenAmount": "0",
2574
+ "claimableShortTokenAmount": "0",
2575
+ "fundingFeeAmount": "557363"
2576
+ }
2577
+ },
2578
+ {
2579
+ "picked": "two-token, longs pay: BNB/USD[WSOL-USDC] long",
2580
+ "market": "BNB/USD[WSOL-USDC]",
2581
+ "position": {
2582
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2583
+ "owner": "BhdCJL6GxQkpM6nsinhYkoTvQrPg6WSiDANQvCs7LYDc",
2584
+ "marketToken": "J42dzcHkgmzU7MARv7k29TrkKaGQ1j2mTaYjkBkN7pn5",
2585
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2586
+ "kind": 1,
2587
+ "isLong": true,
2588
+ "createdAt": 1793360724,
2589
+ "tradeId": "93825",
2590
+ "increasedAt": 1793361380,
2591
+ "updatedAtSlot": "463276176",
2592
+ "decreasedAt": 0,
2593
+ "sizeInTokens": "2095918446",
2594
+ "collateralAmount": "366280507",
2595
+ "sizeInUsd": "1466000000000000046137344",
2596
+ "borrowingFactor": "9426046877263230986",
2597
+ "fundingFeeAmountPerSize": "4511191138770868",
2598
+ "longTokenClaimableFundingAmountPerSize": "79025507316882613",
2599
+ "shortTokenClaimableFundingAmountPerSize": "97672345735073322",
2600
+ "reservedInUse": false
2601
+ },
2602
+ "expected": {
2603
+ "borrowingFeeValue": "7978542890262669471",
2604
+ "claimableLongTokenAmount": "0",
2605
+ "claimableShortTokenAmount": "0",
2606
+ "fundingFeeAmount": "609211"
2607
+ }
2608
+ },
2609
+ {
2610
+ "picked": "two-token, longs pay: BNB/USD[WSOL-USDC] short",
2611
+ "market": "BNB/USD[WSOL-USDC]",
2612
+ "position": {
2613
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2614
+ "owner": "DytdxpFiMiGNGZp7fvHpNGB4GQXeDQTbBfkFhqFMwRdY",
2615
+ "marketToken": "J42dzcHkgmzU7MARv7k29TrkKaGQ1j2mTaYjkBkN7pn5",
2616
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2617
+ "kind": 2,
2618
+ "isLong": false,
2619
+ "createdAt": 1793331461,
2620
+ "tradeId": "93762",
2621
+ "increasedAt": 1793331464,
2622
+ "updatedAtSlot": "463136015",
2623
+ "decreasedAt": 0,
2624
+ "sizeInTokens": "1217326120",
2625
+ "collateralAmount": "229501001",
2626
+ "sizeInUsd": "870400000000000000000000",
2627
+ "borrowingFactor": "12435417440084748886",
2628
+ "fundingFeeAmountPerSize": "3153304156699717",
2629
+ "longTokenClaimableFundingAmountPerSize": "165294618750708910",
2630
+ "shortTokenClaimableFundingAmountPerSize": "88397670130228338",
2631
+ "reservedInUse": false
2632
+ },
2633
+ "expected": {
2634
+ "borrowingFeeValue": "2238312963261024768",
2635
+ "claimableLongTokenAmount": "0",
2636
+ "claimableShortTokenAmount": "1489470",
2637
+ "fundingFeeAmount": "0"
2638
+ }
2639
+ },
2640
+ {
2641
+ "picked": "USDC-USDC market, longs pay: SOL/USD[USDC-USDC] long",
2642
+ "market": "SOL/USD[USDC-USDC]",
2643
+ "position": {
2644
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2645
+ "owner": "HQBwi3hFREmFG9oV8cicW4kZfhsbcMFJmWgQqiUg56HZ",
2646
+ "marketToken": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
2647
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2648
+ "kind": 1,
2649
+ "isLong": true,
2650
+ "createdAt": 1793368440,
2651
+ "tradeId": "719366",
2652
+ "increasedAt": 1793368455,
2653
+ "updatedAtSlot": "463309312",
2654
+ "decreasedAt": 0,
2655
+ "sizeInTokens": "330004803795",
2656
+ "collateralAmount": "589251831",
2657
+ "sizeInUsd": "3130999999999999750438912",
2658
+ "borrowingFactor": "9030467679263227763",
2659
+ "fundingFeeAmountPerSize": "8600853062065299",
2660
+ "longTokenClaimableFundingAmountPerSize": "168123756556196818",
2661
+ "shortTokenClaimableFundingAmountPerSize": "168123756556196818",
2662
+ "reservedInUse": false
2663
+ },
2664
+ "expected": {
2665
+ "borrowingFeeValue": "18487955564010737866",
2666
+ "claimableLongTokenAmount": "0",
2667
+ "claimableShortTokenAmount": "0",
2668
+ "fundingFeeAmount": "272924"
2669
+ }
2670
+ },
2671
+ {
2672
+ "picked": "USDC-USDC market, longs pay: SOL/USD[USDC-USDC] short",
2673
+ "market": "SOL/USD[USDC-USDC]",
2674
+ "position": {
2675
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2676
+ "owner": "DHGMnYuDnQrEjMHzm1m3MXjv24q95Df8v6fQYRVdVcWy",
2677
+ "marketToken": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
2678
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2679
+ "kind": 2,
2680
+ "isLong": false,
2681
+ "createdAt": 1793367779,
2682
+ "tradeId": "719268",
2683
+ "increasedAt": 1793367788,
2684
+ "updatedAtSlot": "463306196",
2685
+ "decreasedAt": 0,
2686
+ "sizeInTokens": "327204682818",
2687
+ "collateralAmount": "535939421",
2688
+ "sizeInUsd": "3109999999999999802867712",
2689
+ "borrowingFactor": "11023436718643013521",
2690
+ "fundingFeeAmountPerSize": "160003213057450141",
2691
+ "longTokenClaimableFundingAmountPerSize": "87874423266717962",
2692
+ "shortTokenClaimableFundingAmountPerSize": "87874423266717962",
2693
+ "reservedInUse": false
2694
+ },
2695
+ "expected": {
2696
+ "borrowingFeeValue": "7248567287979056740",
2697
+ "claimableLongTokenAmount": "216588",
2698
+ "claimableShortTokenAmount": "216588",
2699
+ "fundingFeeAmount": "0"
2700
+ }
2701
+ },
2702
+ {
2703
+ "picked": "USDC-USDC market, shorts pay: BTC/USD[USDC-USDC] long",
2704
+ "market": "BTC/USD[USDC-USDC]",
2705
+ "position": {
2706
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2707
+ "owner": "4Js4PZZTkAdG1DBYAfEd1VNvYiSdQootCqt9GvbvsB9v",
2708
+ "marketToken": "Dqq58gS1TgRMDouUbdvhhzc51XXTNHG921WLxH9X2eB8",
2709
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2710
+ "kind": 1,
2711
+ "isLong": true,
2712
+ "createdAt": 1793320417,
2713
+ "tradeId": "350259",
2714
+ "increasedAt": 1793368640,
2715
+ "updatedAtSlot": "463310180",
2716
+ "decreasedAt": 1793331907,
2717
+ "sizeInTokens": "42396422",
2718
+ "collateralAmount": "1005485495",
2719
+ "sizeInUsd": "3263973357149733930401792",
2720
+ "borrowingFactor": "9846937465422561029",
2721
+ "fundingFeeAmountPerSize": "2716642847744483",
2722
+ "longTokenClaimableFundingAmountPerSize": "4225171995854837",
2723
+ "shortTokenClaimableFundingAmountPerSize": "4225171995854837",
2724
+ "reservedInUse": false
2725
+ },
2726
+ "expected": {
2727
+ "borrowingFeeValue": "0",
2728
+ "claimableLongTokenAmount": "92437",
2729
+ "claimableShortTokenAmount": "92437",
2730
+ "fundingFeeAmount": "0"
2731
+ }
2732
+ },
2733
+ {
2734
+ "picked": "USDC-USDC market, shorts pay: BTC/USD[USDC-USDC] short",
2735
+ "market": "BTC/USD[USDC-USDC]",
2736
+ "position": {
2737
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2738
+ "owner": "S5dFzyaap4xQVArLBawHKtq8sqvpS1o5czsqDg6s6pd",
2739
+ "marketToken": "Dqq58gS1TgRMDouUbdvhhzc51XXTNHG921WLxH9X2eB8",
2740
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2741
+ "kind": 2,
2742
+ "isLong": false,
2743
+ "createdAt": 1793315413,
2744
+ "tradeId": "348979",
2745
+ "increasedAt": 1793315417,
2746
+ "updatedAtSlot": "463060930",
2747
+ "decreasedAt": 0,
2748
+ "sizeInTokens": "78359782",
2749
+ "collateralAmount": "309585526",
2750
+ "sizeInUsd": "6165019362568678993240700",
2751
+ "borrowingFactor": "12954411445301541427",
2752
+ "fundingFeeAmountPerSize": "7112128879417349",
2753
+ "longTokenClaimableFundingAmountPerSize": "130803151918260868",
2754
+ "shortTokenClaimableFundingAmountPerSize": "130803151918260868",
2755
+ "reservedInUse": false
2756
+ },
2757
+ "expected": {
2758
+ "borrowingFeeValue": "1803295231177454300703",
2759
+ "claimableLongTokenAmount": "0",
2760
+ "claimableShortTokenAmount": "0",
2761
+ "fundingFeeAmount": "15822061"
2762
+ }
2763
+ },
2764
+ {
2765
+ "picked": "dust: the smallest open position",
2766
+ "market": "BONK/USD[WSOL-USDC]",
2767
+ "position": {
2768
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2769
+ "owner": "EezHuD81P2tT8EAPACAXU82dVSMG1bxQVPwT2QQeuH7E",
2770
+ "marketToken": "BvC73rarCMrhEnk3JmqaLntpnrwfUCR5eTrf7HQu6ieg",
2771
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2772
+ "kind": 2,
2773
+ "isLong": false,
2774
+ "createdAt": 1776211536,
2775
+ "tradeId": "4043",
2776
+ "increasedAt": 1776211538,
2777
+ "updatedAtSlot": "415535070",
2778
+ "decreasedAt": 1777108277,
2779
+ "sizeInTokens": "17012857165",
2780
+ "collateralAmount": "3030553",
2781
+ "sizeInUsd": "100249000000000000000",
2782
+ "borrowingFactor": "2256178540139345487",
2783
+ "fundingFeeAmountPerSize": "12050862939595971",
2784
+ "longTokenClaimableFundingAmountPerSize": "1132511425357136635",
2785
+ "shortTokenClaimableFundingAmountPerSize": "335738292034505943",
2786
+ "reservedInUse": false
2787
+ },
2788
+ "expected": {
2789
+ "borrowingFeeValue": "4908574073673003205",
2790
+ "claimableLongTokenAmount": "9856139",
2791
+ "claimableShortTokenAmount": "3609226",
2792
+ "fundingFeeAmount": "207688"
2793
+ }
2794
+ },
2795
+ {
2796
+ "picked": "borrowing and funding clocks differ",
2797
+ "market": "DOGE/USD[WSOL-USDC]",
2798
+ "position": {
2799
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2800
+ "owner": "F9D6HZJiE8uap3gQDwr3qQnmoZgw6TDppgvEbNhCdeWK",
2801
+ "marketToken": "BjEpsvvjca1cQ6KGaeULn6sp8hPsP7XhRvUhepPX181c",
2802
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2803
+ "kind": 1,
2804
+ "isLong": true,
2805
+ "createdAt": 1793367998,
2806
+ "tradeId": "136658",
2807
+ "increasedAt": 1793368004,
2808
+ "updatedAtSlot": "463307205",
2809
+ "decreasedAt": 0,
2810
+ "sizeInTokens": "19845190558302",
2811
+ "collateralAmount": "485355632",
2812
+ "sizeInUsd": "1491500000000000047185920",
2813
+ "borrowingFactor": "10397814044693897607",
2814
+ "fundingFeeAmountPerSize": "5569625474467500",
2815
+ "longTokenClaimableFundingAmountPerSize": "615704847445934970",
2816
+ "shortTokenClaimableFundingAmountPerSize": "181360499458691509",
2817
+ "reservedInUse": false
2818
+ },
2819
+ "expected": {
2820
+ "borrowingFeeValue": "0",
2821
+ "claimableLongTokenAmount": "0",
2822
+ "claimableShortTokenAmount": "0",
2823
+ "fundingFeeAmount": "372345"
2824
+ }
2825
+ },
2826
+ {
2827
+ "picked": "size 0: an account opened for an order that never filled",
2828
+ "market": "LTC/USD[WSOL-USDC]",
2829
+ "position": {
2830
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2831
+ "owner": "BWu5Xmj7Dih1nsrcNXDuRMoUVTGGmbugS5Dp4xyVobPE",
2832
+ "marketToken": "527jUvh7guN8Fip96TeJhKWreeWdcwD9CFFwXG9mTiHQ",
2833
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2834
+ "kind": 2,
2835
+ "isLong": false,
2836
+ "createdAt": 1778501827,
2837
+ "tradeId": "0",
2838
+ "increasedAt": 0,
2839
+ "updatedAtSlot": "0",
2840
+ "decreasedAt": 0,
2841
+ "sizeInTokens": "0",
2842
+ "collateralAmount": "0",
2843
+ "sizeInUsd": "0",
2844
+ "borrowingFactor": "0",
2845
+ "fundingFeeAmountPerSize": "0",
2846
+ "longTokenClaimableFundingAmountPerSize": "0",
2847
+ "shortTokenClaimableFundingAmountPerSize": "0",
2848
+ "reservedInUse": false
2849
+ },
2850
+ "expected": {
2851
+ "borrowingFeeValue": "0",
2852
+ "claimableLongTokenAmount": "0",
2853
+ "claimableShortTokenAmount": "0",
2854
+ "fundingFeeAmount": "0"
2855
+ }
2856
+ },
2857
+ {
2858
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] long, long-token collateral, synthetic 1e16 USD size",
2859
+ "market": "LINK/USD[WSOL-USDC]",
2860
+ "position": {
2861
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2862
+ "owner": "9XUH3oy5kjA4UjFeB7RM6bGJCWeWN6GPYAKVmrKRVaYz",
2863
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2864
+ "collateralToken": "So11111111111111111111111111111111111111112",
2865
+ "kind": 1,
2866
+ "isLong": true,
2867
+ "createdAt": 1793369244,
2868
+ "tradeId": "99566",
2869
+ "increasedAt": 1793369250,
2870
+ "updatedAtSlot": "463313024",
2871
+ "decreasedAt": 0,
2872
+ "sizeInTokens": "6914715252",
2873
+ "collateralAmount": "398970753",
2874
+ "sizeInUsd": "1000000000000000000000000000000000000",
2875
+ "borrowingFactor": "13633352433663977370",
2876
+ "fundingFeeAmountPerSize": "18764342393232472",
2877
+ "longTokenClaimableFundingAmountPerSize": "354906050145873548",
2878
+ "shortTokenClaimableFundingAmountPerSize": "257466825518868373",
2879
+ "reservedInUse": false
2880
+ },
2881
+ "expected": {
2882
+ "borrowingFeeValue": "0",
2883
+ "claimableLongTokenAmount": "5222839986000000",
2884
+ "claimableShortTokenAmount": "7580308149000000",
2885
+ "fundingFeeAmount": "0"
2886
+ }
2887
+ },
2888
+ {
2889
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] long, short-token collateral, synthetic 1e16 USD size",
2890
+ "market": "LINK/USD[WSOL-USDC]",
2891
+ "position": {
2892
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2893
+ "owner": "C8GZZ77oe38E5ffDj3vh3wmBZuE9av1CFxdvUjzABd6P",
2894
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2895
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2896
+ "kind": 1,
2897
+ "isLong": true,
2898
+ "createdAt": 1793332964,
2899
+ "tradeId": "99556",
2900
+ "increasedAt": 1793338401,
2901
+ "updatedAtSlot": "463168501",
2902
+ "decreasedAt": 1793336538,
2903
+ "sizeInTokens": "70501814817",
2904
+ "collateralAmount": "262888371",
2905
+ "sizeInUsd": "1000000000000000000000000000000000000",
2906
+ "borrowingFactor": "13630603234580459791",
2907
+ "fundingFeeAmountPerSize": "6256040940116396",
2908
+ "longTokenClaimableFundingAmountPerSize": "354905837930393872",
2909
+ "shortTokenClaimableFundingAmountPerSize": "257466537861914944",
2910
+ "reservedInUse": false
2911
+ },
2912
+ "expected": {
2913
+ "borrowingFeeValue": "27491990835175790000000000000000",
2914
+ "claimableLongTokenAmount": "217438319662000000",
2915
+ "claimableShortTokenAmount": "295237261578000000",
2916
+ "fundingFeeAmount": "0"
2917
+ }
2918
+ },
2919
+ {
2920
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] short, long-token collateral, synthetic 1e16 USD size",
2921
+ "market": "LINK/USD[WSOL-USDC]",
2922
+ "position": {
2923
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2924
+ "owner": "B2NpZ7W5LX1gYs7exjrMUqmrP7XxiSaVVZYAfthHTNet",
2925
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2926
+ "collateralToken": "So11111111111111111111111111111111111111112",
2927
+ "kind": 2,
2928
+ "isLong": false,
2929
+ "createdAt": 1793265355,
2930
+ "tradeId": "98917",
2931
+ "increasedAt": 1793265360,
2932
+ "updatedAtSlot": "462827067",
2933
+ "decreasedAt": 0,
2934
+ "sizeInTokens": "28709737021",
2935
+ "collateralAmount": "4106937711",
2936
+ "sizeInUsd": "1000000000000000000000000000000000000",
2937
+ "borrowingFactor": "15022177149777735427",
2938
+ "fundingFeeAmountPerSize": "21928161080164642",
2939
+ "longTokenClaimableFundingAmountPerSize": "479056600466479565",
2940
+ "shortTokenClaimableFundingAmountPerSize": "370204229772802388",
2941
+ "reservedInUse": false
2942
+ },
2943
+ "expected": {
2944
+ "borrowingFeeValue": "65546225696525590000000000000000",
2945
+ "claimableLongTokenAmount": "4149802378794000000",
2946
+ "claimableShortTokenAmount": "2302470793382000000",
2947
+ "fundingFeeAmount": "9971058010920000000"
2948
+ }
2949
+ },
2950
+ {
2951
+ "picked": "two-token, shorts pay: LINK/USD[WSOL-USDC] short, short-token collateral, synthetic 1e16 USD size",
2952
+ "market": "LINK/USD[WSOL-USDC]",
2953
+ "position": {
2954
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2955
+ "owner": "BDaPGURpmaHbSK6MPV11fLAEQSVLNxsjuKxr8wvPjc6Q",
2956
+ "marketToken": "3pHXv5NsrxwkDdus2e1rTHoaNK9zUUnGwcwg1oeeCGzd",
2957
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2958
+ "kind": 2,
2959
+ "isLong": false,
2960
+ "createdAt": 1793337169,
2961
+ "tradeId": "99550",
2962
+ "increasedAt": 1793337184,
2963
+ "updatedAtSlot": "463162812",
2964
+ "decreasedAt": 0,
2965
+ "sizeInTokens": "146291018242",
2966
+ "collateralAmount": "406004312",
2967
+ "sizeInUsd": "1000000000000000000000000000000000000",
2968
+ "borrowingFactor": "15028472833897584121",
2969
+ "fundingFeeAmountPerSize": "17955262475959875",
2970
+ "longTokenClaimableFundingAmountPerSize": "479060750268858359",
2971
+ "shortTokenClaimableFundingAmountPerSize": "370206532243595770",
2972
+ "reservedInUse": false
2973
+ },
2974
+ "expected": {
2975
+ "borrowingFeeValue": "2589384498038650000000000000000",
2976
+ "claimableLongTokenAmount": "0",
2977
+ "claimableShortTokenAmount": "0",
2978
+ "fundingFeeAmount": "342796069755000000"
2979
+ }
2980
+ },
2981
+ {
2982
+ "picked": "USDC-USDC market, longs pay: SOL/USD[USDC-USDC] long, synthetic 1e16 USD size",
2983
+ "market": "SOL/USD[USDC-USDC]",
2984
+ "position": {
2985
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
2986
+ "owner": "HQBwi3hFREmFG9oV8cicW4kZfhsbcMFJmWgQqiUg56HZ",
2987
+ "marketToken": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
2988
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2989
+ "kind": 1,
2990
+ "isLong": true,
2991
+ "createdAt": 1793368440,
2992
+ "tradeId": "719366",
2993
+ "increasedAt": 1793368455,
2994
+ "updatedAtSlot": "463309312",
2995
+ "decreasedAt": 0,
2996
+ "sizeInTokens": "330004803795",
2997
+ "collateralAmount": "589251831",
2998
+ "sizeInUsd": "1000000000000000000000000000000000000",
2999
+ "borrowingFactor": "9030467679263227763",
3000
+ "fundingFeeAmountPerSize": "8600853062065299",
3001
+ "longTokenClaimableFundingAmountPerSize": "168123756556196818",
3002
+ "shortTokenClaimableFundingAmountPerSize": "168123756556196818",
3003
+ "reservedInUse": false
3004
+ },
3005
+ "expected": {
3006
+ "borrowingFeeValue": "5904808548071140000000000000000",
3007
+ "claimableLongTokenAmount": "0",
3008
+ "claimableShortTokenAmount": "0",
3009
+ "fundingFeeAmount": "87168149391000000"
3010
+ }
3011
+ },
3012
+ {
3013
+ "picked": "USDC-USDC market, longs pay: SOL/USD[USDC-USDC] short, synthetic 1e16 USD size",
3014
+ "market": "SOL/USD[USDC-USDC]",
3015
+ "position": {
3016
+ "store": "CTDLvGGXnoxvqLyTpGzdGLg9pD6JexKxKXSV8tqqo8bN",
3017
+ "owner": "DHGMnYuDnQrEjMHzm1m3MXjv24q95Df8v6fQYRVdVcWy",
3018
+ "marketToken": "6UU9sF5fryafHDYPcmVcV7ucfnYs6iMVcvb8p7SBQgTc",
3019
+ "collateralToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
3020
+ "kind": 2,
3021
+ "isLong": false,
3022
+ "createdAt": 1793367779,
3023
+ "tradeId": "719268",
3024
+ "increasedAt": 1793367788,
3025
+ "updatedAtSlot": "463306196",
3026
+ "decreasedAt": 0,
3027
+ "sizeInTokens": "327204682818",
3028
+ "collateralAmount": "535939421",
3029
+ "sizeInUsd": "1000000000000000000000000000000000000",
3030
+ "borrowingFactor": "11023436718643013521",
3031
+ "fundingFeeAmountPerSize": "160003213057450141",
3032
+ "longTokenClaimableFundingAmountPerSize": "87874423266717962",
3033
+ "shortTokenClaimableFundingAmountPerSize": "87874423266717962",
3034
+ "reservedInUse": false
3035
+ },
3036
+ "expected": {
3037
+ "borrowingFeeValue": "2330729031504520000000000000000",
3038
+ "claimableLongTokenAmount": "69642661369000000",
3039
+ "claimableShortTokenAmount": "69642661369000000",
3040
+ "fundingFeeAmount": "0"
3041
+ }
3042
+ }
3043
+ ]
3044
+ },
3045
+ "feeDiscount": {
3046
+ "config": {
3047
+ "maxRank": 9,
3048
+ "byRank": [
3049
+ "0",
3050
+ "2000000000000000000",
3051
+ "3000000000000000000",
3052
+ "4000000000000000000",
3053
+ "5000000000000000000",
3054
+ "6000000000000000000",
3055
+ "7000000000000000000",
3056
+ "8000000000000000000",
3057
+ "9000000000000000000",
3058
+ "10000000000000000000",
3059
+ "0",
3060
+ "0",
3061
+ "0",
3062
+ "0",
3063
+ "0",
3064
+ "0"
3065
+ ],
3066
+ "referredUser": "10000000000000000000"
3067
+ },
3068
+ "expected": [
3069
+ {
3070
+ "factor": "0",
3071
+ "rank": 0,
3072
+ "referred": false
3073
+ },
3074
+ {
3075
+ "factor": "10000000000000000000",
3076
+ "rank": 0,
3077
+ "referred": true
3078
+ },
3079
+ {
3080
+ "factor": "2000000000000000000",
3081
+ "rank": 1,
3082
+ "referred": false
3083
+ },
3084
+ {
3085
+ "factor": "11800000000000000000",
3086
+ "rank": 1,
3087
+ "referred": true
3088
+ },
3089
+ {
3090
+ "factor": "3000000000000000000",
3091
+ "rank": 2,
3092
+ "referred": false
3093
+ },
3094
+ {
3095
+ "factor": "12700000000000000000",
3096
+ "rank": 2,
3097
+ "referred": true
3098
+ },
3099
+ {
3100
+ "factor": "4000000000000000000",
3101
+ "rank": 3,
3102
+ "referred": false
3103
+ },
3104
+ {
3105
+ "factor": "13600000000000000000",
3106
+ "rank": 3,
3107
+ "referred": true
3108
+ },
3109
+ {
3110
+ "factor": "5000000000000000000",
3111
+ "rank": 4,
3112
+ "referred": false
3113
+ },
3114
+ {
3115
+ "factor": "14500000000000000000",
3116
+ "rank": 4,
3117
+ "referred": true
3118
+ },
3119
+ {
3120
+ "factor": "6000000000000000000",
3121
+ "rank": 5,
3122
+ "referred": false
3123
+ },
3124
+ {
3125
+ "factor": "15400000000000000000",
3126
+ "rank": 5,
3127
+ "referred": true
3128
+ },
3129
+ {
3130
+ "factor": "7000000000000000000",
3131
+ "rank": 6,
3132
+ "referred": false
3133
+ },
3134
+ {
3135
+ "factor": "16300000000000000000",
3136
+ "rank": 6,
3137
+ "referred": true
3138
+ },
3139
+ {
3140
+ "factor": "8000000000000000000",
3141
+ "rank": 7,
3142
+ "referred": false
3143
+ },
3144
+ {
3145
+ "factor": "17200000000000000000",
3146
+ "rank": 7,
3147
+ "referred": true
3148
+ },
3149
+ {
3150
+ "factor": "9000000000000000000",
3151
+ "rank": 8,
3152
+ "referred": false
3153
+ },
3154
+ {
3155
+ "factor": "18100000000000000000",
3156
+ "rank": 8,
3157
+ "referred": true
3158
+ },
3159
+ {
3160
+ "factor": "10000000000000000000",
3161
+ "rank": 9,
3162
+ "referred": false
3163
+ },
3164
+ {
3165
+ "factor": "19000000000000000000",
3166
+ "rank": 9,
3167
+ "referred": true
3168
+ }
3169
+ ]
3170
+ }
3171
+ }