GMX · Schema
TradeActionResponse
DeFiPerpetual ExchangeDEXTradingLeverageLiquidity PoolsGLPGM TokensGLVArbitrumAvalancheWeb3
Properties
| Name | Type | Description |
|---|---|---|
| reasonBytes | string | |
| reason | string | |
| numberOfParts | number | |
| twapGroupId | string | |
| srcChainId | number | |
| decreasePositionSwapType | string | |
| proportionalPendingImpactUsd | string | |
| collateralTotalCostAmount | string | |
| swapImpactUsd | string | |
| executionAmountOut | string | |
| totalImpactUsd | string | |
| liquidationFeeAmount | string | |
| swapFeeUsd | string | |
| fundingFeeAmount | string | |
| borrowingFeeAmount | string | |
| traderDiscountAmount | string | |
| positionFeeAmount | string | |
| priceImpactDiffUsd | string | |
| priceImpactUsd | string | |
| basePnlUsd | string | |
| pnlUsd | string | |
| minOutputAmount | string | |
| collateralTokenPriceMax | string | |
| collateralTokenPriceMin | string | |
| indexTokenPriceMax | string | |
| indexTokenPriceMin | string | |
| executionPrice | string | |
| triggerPrice | string | |
| acceptablePrice | string | |
| sizeDeltaInTokens | string | |
| sizeDeltaUsd | string | |
| isLong | boolean | |
| marketAddress | string | |
| shouldUnwrapNativeToken | boolean | |
| initialCollateralDeltaAmount | string | |
| initialCollateralTokenAddress | string | |
| swapPath | array | |
| transactionHash | string | |
| timestamp | number | |
| orderKey | string | |
| orderType | number | |
| account | string | |
| eventName | string | |
| id | string |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://api-evangelist.github.io/gmx/json-schema/TradeActionResponse.json",
"title": "TradeActionResponse",
"properties": {
"reasonBytes": {
"type": "string"
},
"reason": {
"type": "string"
},
"numberOfParts": {
"type": "number",
"format": "double"
},
"twapGroupId": {
"type": "string"
},
"srcChainId": {
"type": "number",
"format": "double"
},
"decreasePositionSwapType": {
"type": "string"
},
"proportionalPendingImpactUsd": {
"type": "string"
},
"collateralTotalCostAmount": {
"type": "string"
},
"swapImpactUsd": {
"type": "string"
},
"executionAmountOut": {
"type": "string"
},
"totalImpactUsd": {
"type": "string"
},
"liquidationFeeAmount": {
"type": "string"
},
"swapFeeUsd": {
"type": "string"
},
"fundingFeeAmount": {
"type": "string"
},
"borrowingFeeAmount": {
"type": "string"
},
"traderDiscountAmount": {
"type": "string"
},
"positionFeeAmount": {
"type": "string"
},
"priceImpactDiffUsd": {
"type": "string"
},
"priceImpactUsd": {
"type": "string"
},
"basePnlUsd": {
"type": "string"
},
"pnlUsd": {
"type": "string"
},
"minOutputAmount": {
"type": "string"
},
"collateralTokenPriceMax": {
"type": "string"
},
"collateralTokenPriceMin": {
"type": "string"
},
"indexTokenPriceMax": {
"type": "string"
},
"indexTokenPriceMin": {
"type": "string"
},
"executionPrice": {
"type": "string"
},
"triggerPrice": {
"type": "string"
},
"acceptablePrice": {
"type": "string"
},
"sizeDeltaInTokens": {
"type": "string"
},
"sizeDeltaUsd": {
"type": "string"
},
"isLong": {
"type": "boolean"
},
"marketAddress": {
"type": "string"
},
"shouldUnwrapNativeToken": {
"type": "boolean"
},
"initialCollateralDeltaAmount": {
"type": "string"
},
"initialCollateralTokenAddress": {
"type": "string"
},
"swapPath": {
"items": {
"type": "string"
},
"type": "array"
},
"transactionHash": {
"type": "string"
},
"timestamp": {
"type": "number",
"format": "double"
},
"orderKey": {
"type": "string"
},
"orderType": {
"type": "number",
"format": "double"
},
"account": {
"type": "string"
},
"eventName": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"initialCollateralDeltaAmount",
"initialCollateralTokenAddress",
"swapPath",
"transactionHash",
"timestamp",
"orderKey",
"orderType",
"account",
"eventName",
"id"
],
"type": "object"
}