> For the complete documentation index, see [llms.txt](https://pool-party-xyz.gitbook.io/pool-party-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pool-party-xyz.gitbook.io/pool-party-docs/core-api/portfolio.md).

# Portfolio

Portfolio management endpoints

## GET /api/v1/portfolio

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{},{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"JWT access token"}},"schemas":{"PortfolioResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PortfolioResponseData"}},"required":["data"]},"PortfolioResponseData":{"type":"object","properties":{"totalPositions":{"type":"number"},"totalBalanceUsd":{"type":"number"},"totalFeesInUsd":{"type":"number"},"positions":{"type":"array","items":{"$ref":"#/components/schemas/PortfolioResponseDto"}}},"required":["totalPositions","totalBalanceUsd","totalFeesInUsd","positions"]},"PortfolioResponseDto":{"type":"object","properties":{"isPoolManager":{"type":"boolean"},"amount0":{"type":"string"},"amount1":{"type":"string"},"refund0":{"type":"string"},"refund1":{"type":"string"},"amountWithRefund0":{"type":"string"},"amountWithRefund1":{"type":"string"},"totalBalanceUsd":{"type":"number"},"fees0":{"type":"string"},"fees1":{"type":"string"},"totalFeesInUsd":{"type":"number"},"amountInStableCurrency":{"type":"number"},"refundInStableCurrency":{"type":"number"},"rewardsInStableCurrency":{"type":"number"},"poolPartyPosition":{"$ref":"#/components/schemas/PoolPartyPositionDto"}},"required":["isPoolManager","amount0","amount1","refund0","refund1","amountWithRefund0","amountWithRefund1","totalBalanceUsd","fees0","fees1","totalFeesInUsd","amountInStableCurrency","refundInStableCurrency","rewardsInStableCurrency","poolPartyPosition"]},"PoolPartyPositionDto":{"type":"object","properties":{"positionId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"pool":{"type":"string"},"poolView":{"type":"string"},"poolManager":{"type":"string"},"poolManagerFee":{"type":"string"},"currency0":{"$ref":"#/components/schemas/CurrencyDto"},"currency1":{"$ref":"#/components/schemas/CurrencyDto"},"poolTvlUsd":{"type":"number"},"feesApr":{"type":"number"},"poolFeeTier":{"type":"string"},"tokenId":{"type":"string"},"version":{"type":"number"},"inRange":{"type":"boolean"},"tickLower":{"type":"number"},"tickUpper":{"type":"number"},"closed":{"type":"boolean"},"totalInvestors":{"type":"string"},"dexPoolAddress":{"type":"string"},"dexPoolTvlUsd":{"type":"number"},"totalSupply0":{"type":"string"},"totalSupply1":{"type":"string"},"refund0":{"type":"string"},"refund1":{"type":"string"},"tokensOwed0":{"type":"string"},"tokensOwed1":{"type":"string"},"totalDepositedFees0":{"type":"string"},"totalDepositedFees1":{"type":"string"},"totalSupplyWithRefund0":{"type":"string"},"totalSupplyWithRefund1":{"type":"string"},"totalAccruedFees0":{"type":"string"},"totalAccruedFees1":{"type":"string"},"totalFeesInUsd":{"type":"number"},"creationTime":{"type":"string"},"isAllLiquiditySwappedToStableCurrency":{"type":"boolean"}},"required":["positionId","name","description","pool","poolView","poolManager","poolManagerFee","currency0","currency1","poolTvlUsd","feesApr","poolFeeTier","tokenId","version","inRange","tickLower","tickUpper","closed","totalInvestors","dexPoolAddress","dexPoolTvlUsd","totalSupply0","totalSupply1","refund0","refund1","tokensOwed0","tokensOwed1","totalDepositedFees0","totalDepositedFees1","totalSupplyWithRefund0","totalSupplyWithRefund1","totalAccruedFees0","totalAccruedFees1","totalFeesInUsd","creationTime","isAllLiquiditySwappedToStableCurrency"]},"CurrencyDto":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"imageUrl":{"type":"string"}},"required":["address","symbol","name","decimals","imageUrl"]}}},"paths":{"/api/v1/portfolio":{"get":{"operationId":"getPortfolio","parameters":[{"name":"network","required":true,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"default":0,"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"default":100,"type":"number"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}}}
```

## POST /api/v1/portfolio/build/create-pool-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/create-pool-tx":{"post":{"operationId":"buildCreatePoolTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildCreatePoolTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildCreatePoolTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"permitBatch":{"$ref":"#/components/schemas/PermitBatchDto"},"signature":{"type":"string"},"feeTier":{"type":"number"},"tickLower":{"type":"number"},"tickUpper":{"type":"number"},"amount0Min":{"type":"string"},"amount1Min":{"type":"string"},"slippageTolerance":{"type":"number"},"featureSettings":{"$ref":"#/components/schemas/FeatureSettings"}},"required":["network","wallet","permitBatch","signature","feeTier","tickLower","tickUpper","amount0Min","amount1Min","slippageTolerance","featureSettings"]},"PermitBatchDto":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/PermitDetailsDto"}},"spender":{"type":"string"},"sigDeadline":{"type":"string"}},"required":["details","spender","sigDeadline"]},"PermitDetailsDto":{"type":"object","properties":{"token":{"type":"string"},"amount":{"type":"string"},"expiration":{"type":"string"},"nonce":{"type":"string"}},"required":["token","amount","expiration","nonce"]},"FeatureSettings":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"poolManagerFee":{"type":"number"},"hiddenFields":{"$ref":"#/components/schemas/HiddenFields"}},"required":["name","description","poolManagerFee","hiddenFields"]},"HiddenFields":{"type":"object","properties":{"showPriceRange":{"type":"boolean"},"showTokenPair":{"type":"boolean"},"showInOutRange":{"type":"boolean"}},"required":["showPriceRange","showTokenPair","showInOutRange"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```

## POST /api/v1/portfolio/build/add-liquidity-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/add-liquidity-tx":{"post":{"operationId":"buildAddLiquidityTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildAddLiquidityTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildAddLiquidityTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"positionId":{"type":"string"},"permit":{"$ref":"#/components/schemas/PermitSingleDto"},"signature":{"type":"string"}},"required":["network","wallet","positionId","permit","signature"]},"PermitSingleDto":{"type":"object","properties":{"details":{"$ref":"#/components/schemas/PermitDetailsDto"},"spender":{"type":"string"},"sigDeadline":{"type":"string"}},"required":["details","spender","sigDeadline"]},"PermitDetailsDto":{"type":"object","properties":{"token":{"type":"string"},"amount":{"type":"string"},"expiration":{"type":"string"},"nonce":{"type":"string"}},"required":["token","amount","expiration","nonce"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```

## POST /api/v1/portfolio/build/remove-liquidity-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/remove-liquidity-tx":{"post":{"operationId":"buildRemoveLiquidityTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildRemoveLiquidityTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildRemoveLiquidityTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"positionId":{"type":"string"},"percentage":{"type":"number"},"slippageTolerance":{"type":"number"},"shouldSwapFees":{"type":"boolean"}},"required":["network","wallet","positionId","percentage","slippageTolerance","shouldSwapFees"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```

## POST /api/v1/portfolio/build/collect-fees-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/collect-fees-tx":{"post":{"operationId":"buildCollectFeesTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildCollectFeesTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildCollectFeesTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"positionId":{"type":"string"},"slippageTolerance":{"type":"number"},"shouldSwapFees":{"type":"boolean"}},"required":["network","wallet","positionId","slippageTolerance","shouldSwapFees"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```

## POST /api/v1/portfolio/build/withdraw-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/withdraw-tx":{"post":{"operationId":"buildWithdrawTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildWithdrawTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildWithdrawTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"positionId":{"type":"string"},"slippageTolerance":{"type":"number"},"shouldSwapFees":{"type":"boolean"}},"required":["network","wallet","positionId","slippageTolerance","shouldSwapFees"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```

## POST /api/v1/portfolio/build/close-pool-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/close-pool-tx":{"post":{"operationId":"buildClosePoolTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildClosePoolTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"201":{"description":"The record has been successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponseDto"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildClosePoolTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"positionId":{"type":"string"},"slippageTolerance":{"type":"number"},"swapAllToStableCurrency":{"type":"boolean"}},"required":["network","wallet","positionId","slippageTolerance","swapAllToStableCurrency"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```

## POST /api/v1/portfolio/build/move-range-tx

>

```json
{"openapi":"3.0.0","info":{"title":"Pool Party Core API","version":"1.0"},"tags":[{"name":"Portfolio","description":"Portfolio management endpoints"}],"security":[{}],"paths":{"/api/v1/portfolio/build/move-range-tx":{"post":{"operationId":"buildMoveRangeTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildMoveRangeTxDto"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"408":{"description":"Request timeout."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error"}},"tags":["Portfolio"]}}},"components":{"schemas":{"BuildMoveRangeTxDto":{"type":"object","properties":{"network":{"type":"string"},"wallet":{"type":"string"},"positionId":{"type":"string"},"slippageTolerance":{"type":"number"},"tickLower":{"type":"number"},"tickUpper":{"type":"number"},"swapZeroForOneAmount":{"type":"string"},"swapOneForZeroAmount":{"type":"string"}},"required":["network","wallet","positionId","slippageTolerance","tickLower","tickUpper","swapZeroForOneAmount","swapOneForZeroAmount"]},"TxResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseData"}},"required":["data"]},"TxResponseData":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TxResponseDto"}},"required":["data"]},"TxResponseDto":{"type":"object","properties":{"swapInfo":{"$ref":"#/components/schemas/TxResponseWithSwap"},"estimatedGasInUsd":{"type":"number"},"estimatedGasInEth":{"type":"number"},"result":{"type":"array","items":{"type":"string"}},"tx":{"$ref":"#/components/schemas/TxDto"},"request":{"$ref":"#/components/schemas/RequestDto"}},"required":["swapInfo","estimatedGasInUsd","estimatedGasInEth","result","tx","request"]},"TxResponseWithSwap":{"type":"object","properties":{"priceImpactPercentage":{"type":"number"},"protocolFee":{"type":"number"},"minAmountInStable":{"type":"number"}},"required":["priceImpactPercentage","protocolFee","minAmountInStable"]},"TxDto":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"data":{"type":"string"}},"required":["to","from","data"]},"RequestDto":{"type":"object","properties":{"abi":{"type":"array","items":{"type":"object"}},"args":{"type":"array","items":{"type":"object"}},"address":{"type":"string"},"functionName":{"type":"string"},"account":{"type":"string"}},"required":["abi","args","address","functionName","account"]}}}}
```
