Download OpenAPI specification:
| mint required | string Enum: "So11111111111111111111111111111111111111112" "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs" "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh" Mint address for the given market |
{- "price": "123.00",
- "priceChange24H": "-20.00",
- "priceHigh24H": "123.00",
- "priceLow24H": "123.00",
- "volume": "48123049.00"
}| walletAddress required | string Public key for the wallet to fetch expired orders |
{- "serializedTxs": [
- {
- "serializedTxBase64": "string",
- "positionRequestPubkey": "string"
}
], - "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string"
}
}| positionRequestPubkey required | string Public key / account address for the position request account for the limit order. |
{- "positionRequestPubkey": "string"
}{- "serializedTxBase64": "string",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}, - "positionPubkey": "string",
- "positionRequestPubkey": "string",
- "requireKeeperSignature": true
}| walletAddress required | string Public key for the wallet to fetch expired orders |
{- "walletAddress": "string"
}{- "count": 0,
- "dataList": [
- {
- "collateralMint": "string",
- "collateralCustody": "string",
- "collateralUsd": "1234000000",
- "collateralUsdAtTriggerPrice": "1234000000",
- "collateralTokenAmount": "string",
- "custody": "string",
- "executed": true,
- "inputMint": "string",
- "liquidationPriceUsd": "13240000",
- "marketMint": "string",
- "maxSizeUsdDelta": "1234000000",
- "minSizeUsdDelta": "1234000000",
- "openTime": "string",
- "positionPubkey": "string",
- "positionRequestPubkey": "string",
- "side": "long",
- "sizeUsdDelta": "string",
- "triggerPrice": "string",
- "triggerToLiquidationPercent": "5.75"
}
]
}| asset required | string Enum: "BTC" "ETH" "SOL" The asset or market to trade against for the limit order. |
| includeSerializedTx | boolean Default: true Sets whether to return a serialized transaction ( |
| inputToken required | string Enum: "BTC" "ETH" "SOL" "USDC" The token symbol for the input token used to fund the limit order. |
| inputTokenAmount required | string The amount of tokens for the input token. NOTE: The token amount needs to be an integer and must conform to the token mint decimals specified onchain. For example, to deposit 1 SOL, the value would be '1000000000' (9 decimals). |
| leverage | string Leverage of the limit order. Either provide leverage or sizeUsdDelta. |
| side required | string Enum: "long" "short" Required when creating a limit order request. |
| sizeUsdDelta | string The amount in USD for the size of the limit order (raw value with 6 decimal places). Either provide leverage or sizeUsdDelta. |
| triggerPrice required | string Trigger price at which the limit order will be executed (raw value with 6 decimal places). For example, to set a trigger price of $20, pass in 20000000. |
| walletAddress | string The wallet address / public key for the trader. Required when creating a limit order that returns a serialized transaction. |
{- "asset": "SOL",
- "includeSerializedTx": true,
- "inputToken": "USDC",
- "inputTokenAmount": "1000000000",
- "leverage": "10",
- "side": "long",
- "sizeUsdDelta": "10000000",
- "triggerPrice": "20000000",
- "walletAddress": "string"
}{- "positionPubkey": "string",
- "quote": {
- "averagePriceUsd": "10000000",
- "collateralUsdDelta": "1124450000",
- "leverage": "2.99",
- "liquidationPriceUsd": "13240000",
- "openFeeUsd": "100000",
- "outstandingBorrowFeeUsd": "100000",
- "positionCollateralUsd": "100000000",
- "positionSizeUsd": "10000000",
- "priceImpactFeeBps": "100",
- "priceImpactFeeUsd": "13301",
- "side": "long",
- "sizeUsdDelta": "1124450000",
- "sizeTokenDelta": "14420000"
}, - "serializedTxBase64": "string",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "5000",
- "accountRentLamports": "2039280"
}
}| positionRequestPubkey required | string The public key for the limit order position request. |
| triggerPrice required | string Trigger price at which the limit order will be executed (raw value with 6 decimal places). For example, to set a trigger price of $20, pass in 20000000. |
{- "positionRequestPubkey": "string",
- "triggerPrice": "20000000"
}{- "positionPubkey": "string",
- "positionRequestPubkey": "string",
- "quote": {
- "averagePriceUsd": "10000000",
- "collateralUsdDelta": "1124450000",
- "leverage": "2.99",
- "liquidationPriceUsd": "13240000",
- "openFeeUsd": "100000",
- "outstandingBorrowFeeUsd": "100000",
- "positionCollateralUsd": "100000000",
- "positionSizeUsd": "10000000",
- "priceImpactFeeBps": "100",
- "priceImpactFeeUsd": "13301",
- "side": "long",
- "sizeUsdDelta": "1124450000",
- "sizeTokenDelta": "14420000"
}, - "serializedTxBase64": "string",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "5000",
- "accountRentLamports": "2039280"
}
}| includeClosedPositions | boolean Default: false Set to true to return closed positions |
| walletAddress required | string Public key for the wallet to fetch trades |
{- "dataList": [
- {
- "asset": "SOL",
- "assetMint": "So11111111111111111111111111111111111111112",
- "collateralToken": "SOL",
- "collateralMint": "So11111111111111111111111111111111111111112",
- "positionPubkey": "815wh1VLC8D7ZWMa3uB7GgjHFetANuML2dPrJiLV1nVF",
- "side": "long",
- "leverage": "21.30",
- "sizeUsd": "1234567800",
- "sizeTokenAmount": "250000000",
- "collateralUsd": "250000000",
- "valueUsd": "120000000",
- "entryPriceUsd": "123450000",
- "markPriceUsd": "125000000",
- "liquidationPriceUsd": "113450000",
- "openFeesUsd": "100000",
- "closeFeesUsd": "100000",
- "borrowFeesUsd": "100000",
- "totalFeesUsd": "200000",
- "pnlBeforeFeesUsd": "1045000",
- "pnlBeforeFeesPct": "20.24",
- "pnlAfterFeesUsd": "1045000",
- "pnlAfterFeesPct": "-20.24",
- "createdTime": 1722851463,
- "updatedTime": 1722851463,
- "tpslRequests": [
- {
- "positionRequestPubkey": "string",
- "requestType": "tp",
- "desiredMint": "So11111111111111111111111111111111111111112",
- "desiredToken": "SOL",
- "collateralUsdDelta": "1234000000",
- "entirePosition": true,
- "sizeUsd": "1234000000",
- "sizePercentage": "12.34",
- "triggerPriceUsd": "20000000",
- "openTime": "1722851463"
}
]
}
], - "count": 0
}| walletAddress required | string The wallet address / public key for the trader to close all open positions |
{- "walletAddress": "string"
}{- "serializedTxs": [
- {
- "serializedTxBase64": "string",
- "positionRequestPubkey": "string"
}
], - "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string"
}
}| inputMint required | string Example: inputMint=So11111111111111111111111111111111111111112 The mint address for the input token to deposit as collateral (e.g. 'So11111111111111111111111111111111111111112' for 'SOL') |
| positionPubkey required | string Example: positionPubkey=5HHB8sCKjWPU2zr3p4Lg49mQiaPQiHbCjHW7jgVzp583 The public key for the open position. Use the |
{- "maxCollateralDepositTokenAmount": "string",
- "maxCollateralDepositUsd": "string",
- "minCollateralDepositTokenAmount": "string",
- "minCollateralDepositUsd": "string",
- "maxCollateralWithdrawalTokenAmount": "string",
- "maxCollateralWithdrawalUsd": "string",
- "minCollateralWithdrawalTokenAmount": "string",
- "minCollateralWithdrawalUsd": "string"
}| collateralUsdDelta | string or null The amount of collateral to withdraw in USD from the position. Must be an integer representing the USD amount multiplied by 10^6 (1 million) to align with the 6 decimal places used for USDC/USDT tokens on-chain. For example, to decrease by $10 USD, set 'collateralUsdDelta' to 10000000; for $20.50 USD, set 'collateralUsdDelta' to 20500000. |
| entirePosition | boolean Default: false When set to |
| maxSlippageBps | string Default: "200" The maximum slippage in (BPS) for the asset's price when executing the trade |
| positionPubkey required | string The public key for the open position. Use the |
| priorityFeeMicroLamports | string Custom priority fee in microlamports for the transaction (1,000,000 microlamports = 1 lamport). If not set, the API will automatically set the optimal priority fee |
| receiveToken required | string Enum: "BTC" "ETH" "SOL" "USDC" The token to receive. |
| sizeUsdDelta | string or null The amount in USD to decrease the position size by. Must be an integer representing the USD amount multiplied by 10^6 (1 million) to align with the 6 decimal places used for USDC/USDT tokens on-chain. For example, to decrease by $10 USD, set 'sizeUsdDelta' to 10000000; for $20.50 USD, set 'sizeUsdDelta' to 20500000. |
{- "collateralUsdDelta": "10000000",
- "entirePosition": false,
- "maxSlippageBps": "100",
- "positionPubkey": "5HHB8sCKjWPU2zr3p4Lg49mQiaPQiHbCjHW7jgVzp583",
- "priorityFeeMicroLamports": "string",
- "receiveToken": "BTC",
- "sizeUsdDelta": "10000000"
}{- "positionPubkey": "string",
- "quote": {
- "closeFeeUsd": "100000",
- "collateralUsdDelta": "10000000",
- "leverage": "2.99",
- "liquidationPriceUsd": "13240000",
- "outstandingBorrowFeeUsd": "100000",
- "pnlAfterFeesUsd": "1045000",
- "pnlAfterFeesPercent": "-20.24",
- "pnlBeforeFeesUsd": "1045000",
- "pnlBeforeFeesPercent": "20.24",
- "positionCollateralUsd": "100000000",
- "positionSizeUsd": "10000000",
- "priceImpactFeeBps": "1.3301",
- "priceImpactFeeUsd": "13301",
- "side": "long",
- "sizeUsdDelta": "10000000",
- "totalFeeUsd": "100000",
- "transferAmountToken": "100000000",
- "transferAmountUsd": "10000000",
- "transferTokenMint": "So11111111111111111111111111111111111111112"
}, - "serializedTxBase64": "string",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "5000",
- "accountRentLamports": "2039280"
}
}| asset required | string Enum: "BTC" "ETH" "SOL" The asset or market to trade against |
| inputToken required | string Enum: "BTC" "ETH" "SOL" "USDC" The token symbol for the input token used to fund the position |
| inputTokenAmount required | string The amount of tokens for the input token to open the position or deposit collateral. NOTE: The token amount needs to be an integer and must conform to the token mint decimals specified onchain. For example, to deposit 1 SOL, the value would be '1000000000' (9 decimals) |
| leverage | string Leverage of the increase position, up to 1 decimal place. Either provide 'leverage' or 'sizeUsdDelta' to open a trade. Min leverage is '1.1'. Max leverage for SOL is 250.0 |
| maxSlippageBps required | string The maximum slippage in (BPS) for the asset's price when executing trade |
| priorityFeeMicroLamports | string Custom priority fee in microlamports for the transaction (1,000,000 microlamports = 1 lamport). If not set, the API will automatically set the optimal priority fee |
| side required | string Enum: "long" "short" Side for the trade |
| sizeUsdDelta | string The amount in USD to increase the position size by. Must be an integer representing the USD amount multiplied by 10^6 (1 million) to align with the 6 decimal places used for USDC/USDT tokens on-chain. For example, to increase the position size by $10 USD, set 'sizeUsdDelta' to 10000000; for $0.50 USD, set 'sizeUsdDelta' to 500000. Either provide 'leverage' or 'sizeUsdDelta'. |
Array of objects or null <= 2 items TPSL requests to set. TPSL requests can only be set for positions that 150x leverage or below. Only 2 TPSLs can be set at a time. | |
| walletAddress | string The wallet address / public key for the trader, Required when opening a new position. |
{- "asset": "SOL",
- "inputToken": "SOL",
- "inputTokenAmount": "1000000000",
- "leverage": "11.5",
- "maxSlippageBps": "100",
- "priorityFeeMicroLamports": "string",
- "side": "long",
- "sizeUsdDelta": "10000000",
- "tpsl": [
- {
- "receiveToken": "BTC",
- "triggerPrice": "20000000",
- "requestType": "tp"
}
], - "walletAddress": "string"
}{- "positionPubkey": "string",
- "quote": {
- "averagePriceUsd": "10000000",
- "collateralUsdDelta": "1124450000",
- "leverage": "2.99",
- "liquidationPriceUsd": "13240000",
- "openFeeUsd": "100000",
- "outstandingBorrowFeeUsd": "100000",
- "positionCollateralUsd": "100000000",
- "positionSizeUsd": "10000000",
- "priceImpactFeeBps": "100",
- "priceImpactFeeUsd": "13301",
- "side": "long",
- "sizeUsdDelta": "1124450000",
- "sizeTokenDelta": "14420000"
}, - "serializedTxBase64": "string",
- "tpsl": [
- {
- "hasProfit": true,
- "pnlUsd": "string",
- "pnlPercent": "string",
- "pubkey": "string",
- "requestType": "tp"
}
], - "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "5000",
- "accountRentLamports": "2039280"
}
}| mint required | string Enum: "So11111111111111111111111111111111111111112" "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs" "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh" The token mint address for the perpetuals market |
{- "longAvailableLiquidity": "2500000",
- "longBorrowRatePercent": "0.0026",
- "longUtilizationPercent": "26.00",
- "shortAvailableLiquidity": "2500000",
- "shortBorrowRatePercent": "0.0026",
- "shortUtilizationPercent": "26.00",
- "openFeePercent": "0.06",
- "maxRequestExecutionSec": "string",
- "maxPriceImpactFeePercent": "string"
}{- "aumUsd": "123456789000000",
- "aumUsdFormatted": "123,456.79",
- "aumLimitUsd": "500000000000000",
- "aumLimitUsdFormatted": "500,000",
- "jlpPriceUsd": "1234567",
- "jlpPriceUsdFormatted": "1.2346",
- "jlpTotalSupply": "100000000000",
- "jlpTotalSupplyFormatted": "100,000",
- "jlpAprBps": "100",
- "jlpAprPct": "10.00",
- "jlpApyBps": "100",
- "jlpApyPct": "10.00",
- "jlpAprLastUpdatedTimestamp": "1715404800",
- "jlpRealizedFeeUsd": "100000000",
- "custodies": [
- {
- "pubkey": "11111111111111111111111111111111",
- "symbol": "SOL",
- "name": "Wrapped SOL",
- "mint": "So11111111111111111111111111111111111111112",
- "aumUsd": "12345678900000",
- "aumUsdFormatted": "123456.79",
- "aumTokenAmount": "123456789",
- "aumTokenAmountFormatted": "123,456.79",
- "currentWeightagePct": "25.50",
- "targetWeightagePct": "30.00",
- "utilizationPct": "45.20",
- "owned": "123456789",
- "locked": "123456789",
- "guaranteedUsd": "123456789",
- "globalShortSizes": "123456789",
- "globalShortAveragePrice": "123456789",
- "shortPnlDelta": "123456789",
- "shortTradersHasProfit": true,
- "totalStakedAmountLamports": "123456789",
- "totalStakedAmountUsd": "123456789",
- "totalStakedAmountUsdFormatted": "123456789"
}
]
}| action | string Enum: "Increase" "Decrease" |
| createdAtAfter | string Fetches trades with a 'createdAt' date that is greater or equal to the given 'createdAtAfter' UNIX timestamp' |
| createdAtBefore | string Fetches trades with a 'createdAt' date that is less than the given 'createdAtBefore' UNIX timestamp' |
| end | number Default: 20 The index of the last row to retrieve. This parameter specifies the ending point for fetching rows from the dataset. It is exclusive, meaning that the row at this index will not be included in the results. |
| mint | string Enum: "So11111111111111111111111111111111111111112" "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs" "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh" Mint address for the underlying position of the trade |
| side | string Enum: "long" "short" |
| start | number Default: 0 The index of the first row to retrieve. This parameter specifies the starting point for fetching rows from the dataset. It is inclusive, meaning that the row at this index will be included in the results |
| walletAddress | string Public key for the wallet to fetch trades (required unless txid is provided) |
| txid | string Transaction ID for the trade to fetch directly |
{- "count": 0,
- "dataList": [
- {
- "action": "Increase",
- "collateralUsdDelta": "250.00",
- "createdTime": 1722851463,
- "baseFee": "0.45",
- "borrowFee": "0.45",
- "liquidationFee": "0.45",
- "priceImpactFee": "0.45",
- "fee": "0.45",
- "integratorFeeTokenAmount": "string",
- "integratorFeeTokenMint": "string",
- "mint": "So11111111111111111111111111111111111111112",
- "orderType": "Market",
- "owner": "string",
- "pnl": "24.13",
- "pnlPercentage": "24.13",
- "positionName": "SOL-PERP",
- "positionPubkey": "string",
- "price": "123.45",
- "side": "long",
- "size": "12345.68",
- "transactionFeeLamports": "5000",
- "priorityFeeLamports": "2000",
- "swapFeeBps": "30",
- "swapFeeUsd": "30",
- "swapFeeTokenAmount": "100000",
- "swapFeeTokenMint": "string",
- "txHash": "4sjjb5kKAWAtXg1MQausgyqDx1Q5mU79a6EigxjjLYmCqBrNUE123XuoKr7Qir6ahBbLoSLLzT8gznxC2cgss5gR",
- "updatedTime": 1722851463
}
]
}| action required | string Enum: "cancel-tpsl" "create-tpsl" "update-tpsl" "tpsl" "tpsl-with-fee" "cancel-limit-order" "create-limit-order" "update-limit-order" "limit-order" "increase-position" "increase-position-with-fee" "decrease-position" "decrease-position-with-fee" The action for the serialized transaction to be executed |
| serializedTxBase64 required | string Serialise signed transaction from user. |
{- "action": "cancel-tpsl",
- "serializedTxBase64": "string"
}{- "action": "string",
- "txid": "string"
}| positionRequestPubkey required | string The public key for the TP / SL request |
{- "positionRequestPubkey": "5HHB8sCKjWPU2zr3p4Lg49mQiaPQiHbCjHW7jgVzp583"
}{- "requireKeeperSignature": true,
- "serializedTxBase64": "string",
- "transactionType": "legacy",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}
}| walletAddress required | string The public key for owner of the position. |
| positionPubkey required | string The public key for the open position. Use the |
required | Array of objects <= 20 items TPSL requests to set. |
| transactionType | string Default: "instant" Enum: "instant" "mixed" Sets the type of serialized transaction to execute the action. |
{- "walletAddress": "5HHB8sCKjWPU2zr3p4Lg49mQiaPQiHbCjHW7jgVzp583",
- "positionPubkey": "5HHB8sCKjWPU2zr3p4Lg49mQiaPQiHbCjHW7jgVzp583",
- "tpsl": [
- {
- "receiveToken": "BTC",
- "entirePosition": false,
- "sizeUsdDelta": "10000000",
- "triggerPrice": "20000000",
- "requestType": "tp"
}
], - "transactionType": "instant"
}{- "tpslPubkeys": [
- "string"
], - "requireKeeperSignature": true,
- "serializedTxBase64": "string",
- "tpslRequests": [
- {
- "estimatedPnlUsd": "string",
- "estimatedPnlPercent": "string",
- "hasProfit": true,
- "requestType": "tp",
- "positionRequestPubkey": "string"
}
], - "transactionType": "legacy",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}
}| positionRequestPubkey required | string The public key for the TP / SL request |
| triggerPrice required | string Trigger price at which the TP / SL request will be executed (raw value with 6 decimal places). For example, to set a trigger price of $20, pass in 20000000. |
| transactionType | string Default: "instant" Enum: "instant" "mixed" Sets the type of serialized transaction to execute the action. If the transaction type is |
{- "positionRequestPubkey": "5HHB8sCKjWPU2zr3p4Lg49mQiaPQiHbCjHW7jgVzp583",
- "triggerPrice": "20000000",
- "transactionType": "instant"
}{- "requireKeeperSignature": true,
- "serializedTxBase64": "string",
- "tpslRequests": [
- {
- "estimatedPnlUsd": "string",
- "estimatedPnlPercent": "string",
- "hasProfit": true,
- "requestType": "tp",
- "positionRequestPubkey": "string"
}
], - "transactionType": "legacy",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}
}| depositTokenAmount required | string JLP token amount to deposit based on the JLP mint decimals (6)` |
| borrowMint | string Default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" Value: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" Mint address for the borrow token |
| borrowTokenAmount required | string Token amount for the borrow based on the mint decimals for the borrow token defined in |
| walletAddress required | string Public key for the wallet to deposit / borrow |
{- "depositTokenAmount": "string",
- "borrowMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
- "borrowTokenAmount": "string",
- "walletAddress": "string"
}{- "borrowSizeUsd": "string",
- "borrowSizeTokenAmount": "string",
- "borrowTokenMint": "string",
- "collateralTokenAmount": "string",
- "collateralTokenUsd": "string",
- "maxBorrowTokenAmount": "string",
- "maxBorrowTokenAmountBeforeBorrow": "string",
- "maxBorrowUsd": "string",
- "maxWithdrawUsd": "string",
- "maxWithdrawTokenAmount": "string",
- "maxRepayTokenAmount": "string",
- "liquidationPriceUsd": "string",
- "ltvBps": "string",
- "ltvPercentage": "string",
- "positionPubkey": "string",
- "serializedTxBase64": "string",
- "requireKeeperSignature": true,
- "transactionType": "legacy",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}
}| repayMint | string Default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" Value: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" Mint address for the payment token |
| repayTokenAmount required | string Token amount to pay for the position's debt |
| withdrawTokenAmount required | string The JLP token amount to withdraw from the position |
| walletAddress required | string Public key for the wallet to pay / withdraw |
{- "repayMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
- "repayTokenAmount": "string",
- "withdrawTokenAmount": "string",
- "walletAddress": "string"
}{- "borrowSizeUsd": "string",
- "borrowSizeTokenAmount": "string",
- "borrowTokenMint": "string",
- "collateralTokenAmount": "string",
- "collateralTokenUsd": "string",
- "maxBorrowTokenAmount": "string",
- "maxBorrowUsd": "string",
- "maxWithdrawUsd": "string",
- "maxWithdrawTokenAmount": "string",
- "maxWithdrawTokenAmountBeforeWithdraw": "string",
- "maxRepayTokenAmount": "string",
- "liquidationPriceUsd": "string",
- "ltvBps": "string",
- "ltvPercentage": "string",
- "positionPubkey": "string",
- "serializedTxBase64": "string",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}, - "requireKeeperSignature": true,
- "transactionType": "legacy"
}| walletAddress required | string Public key for the wallet to pay / withdraw |
{- "dataList": [
- {
- "borrowSizeUsd": "string",
- "borrowSizeTokenAmount": "string",
- "borrowTokenMint": "string",
- "maxBorrowTokenAmount": "string",
- "maxBorrowUsd": "string",
- "maxWithdrawUsd": "string",
- "maxWithdrawTokenAmount": "string",
- "maxRepayTokenAmount": "string",
- "ltvBps": "string",
- "ltvPercentage": "string",
- "liquidationPriceUsd": "string",
- "collateralTokenAmount": "string",
- "collateralUsd": "string",
- "positionPubkey": "string"
}
], - "count": 0
}{- "currentJlpPriceUsd": "string",
- "borrowTokenMint": "string",
- "availableLiquidityUsd": "string",
- "availableLiquidityTokenAmount": "string",
- "totalSupplyUsd": "string",
- "totalSupplyTokenAmount": "string",
- "utilizationRateBps": "string",
- "utilizationRatePercentage": "string",
- "borrowApr": "string",
- "liquidationMarginBps": "string",
- "liquidationMarginPercentage": "string",
- "liquidationPenaltyBps": "string",
- "liquidationPenaltyPercentage": "string",
- "maxLtvBps": "string",
- "maxLtvPercentage": "string"
}| walletAddress | string Filter by wallet address |
| borrowPositionPubkey | string Filter by specific borrow position pubkey |
| transactionType | string Enum: "DepositCollateral" "WithdrawCollateral" "Borrow" "Repay" "Liquidation" Filter by transaction type |
| createdAtAfter | string Fetches transactions with a 'createdAt' date that is greater or equal to the given 'createdAtAfter' UNIX timestamp |
| createdAtBefore | string Fetches transactions with a 'createdAt' date that is less than the given 'createdAtBefore' UNIX timestamp |
| start | number Default: 0 The index of the first row to retrieve. This parameter specifies the starting point for fetching rows from the dataset. It is inclusive, meaning that the row at this index will be included in the results |
| end | number Default: 20 The index of the last row to retrieve. This parameter specifies the ending point for fetching rows from the dataset. It is exclusive, meaning that the row at this index will not be included in the results. |
{- "dataList": [
- {
- "txHash": "string",
- "transactionType": "DepositCollateral",
- "walletAddress": "string",
- "borrowPositionPubkey": "string",
- "createdTime": 0,
- "tokenAmount": "string",
- "tokenMint": "string"
}
], - "count": 0
}| marketMint required | string Enum: "So11111111111111111111111111111111111111112" "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs" "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh" Mint address for the given market to filter top trader data |
| year required | string The year for the week to query |
required | "current" (string) or string The week number (1-53) or "current" for the current week |
{- "marketMint": "string",
- "totalVolumeUsd": "string",
- "startTimestamp": 0,
- "endTimestamp": 0,
- "topTradersByPnl": [
- {
- "totalVolumeUsd": "string",
- "totalPnlUsd": "string",
- "owner": "string"
}
], - "topTradersByVolume": [
- {
- "totalVolumeUsd": "string",
- "totalPnlUsd": "string",
- "owner": "string"
}
]
}| walletAddress required | string The pubkey of trader to get volume data |
| marketMint required | string Enum: "So11111111111111111111111111111111111111112" "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs" "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh" Mint address for the given market to filter top trader data |
| year required | string The year for the week to query |
required | "current" (string) or string The week number (1-53) or "current" for the current week |
{- "totalVolumeUsd": "string",
- "totalPnlUsd": "string",
- "startTimestamp": 0,
- "endTimestamp": 0
}| burnTokenAmount required | string The amount of JLP tokens to burn scaled to 6 decimal places as per the JLP mint |
| receiveToken required | string Enum: "WBTC" "ETH" "SOL" "USDC" Token to receive from burning JLP |
| walletAddress required | string Public key for the wallet to burn JLP |
{- "burnTokenAmount": "string",
- "receiveToken": "WBTC",
- "walletAddress": "string"
}{- "burnFeeBps": "string",
- "burnFeePercent": "string",
- "burnFeeTokenAmount": "string",
- "receiveToken": "string",
- "receiveTokenAmount": "string",
- "receiveTokenCustody": "string",
- "receiveTokenMint": "string",
- "serializedTxBase64": "string",
- "transactionType": "legacy",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}
}| depositToken required | string Enum: "WBTC" "ETH" "SOL" "USDC" Token to deposit to mint JLP |
| depositTokenAmount required | string The amount of the deposit token to deposit to mint JLP |
| walletAddress required | string Public key for the wallet to mint JLP |
{- "depositToken": "WBTC",
- "depositTokenAmount": "string",
- "walletAddress": "string"
}{- "mintFeeBps": "string",
- "mintFeePercent": "string",
- "mintTokenAmount": "string",
- "serializedTxBase64": "string",
- "transactionType": "legacy",
- "txMetadata": {
- "blockhash": "string",
- "lastValidBlockHeight": "string",
- "transactionFeeLamports": "0.5",
- "accountRentLamports": "0.5"
}
}