POST
/
v0
/
pools
/
{tokenA}
/
{tokenB}
/
open-position
Pools Open Position
curl --request POST \
  --url https://orca.dial.to/api/v0/pools/{tokenA}/{tokenB}/open-position \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "transaction",
  "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}'
{
  "type": "<any>",
  "transaction": "<string>"
}

Path Parameters

tokenA
string
default:So11111111111111111111111111111111111111112
required

The token A address

tokenB
string
default:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
required

The token B address

Query Parameters

amount
number
default:100

The amount to deposit. Human readable value, e.g. 100 USDC

Required range: x > 0
Example:

100

percentage
integer

The percentage of token amount to deposit

Required range: 0 < x <= 100
lowerPrice
number

The lower price of the position

Required range: x > 0
upperPrice
number

The upper price of the position

Required range: x > 0

Body

application/json

Response

200 - application/json

OK

The response is of type object.