Strategies

Check what a backing would fill on Solana

How much one backing over a range lets a swap fill on its pool, range by range in each direction.

GET
/api/solana/strategies/fill-reach

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Query Parameters

venue*string

orca or raydium.

tokenA*string

One token of the pair, as its base58 mint address.

tokenB*string

The other token of the pair, as its base58 mint address.

config*string

The venue's config, as GET /api/solana/strategies/pools lists it.

tickSpacing*integer

The pool's tick spacing.

feeTierIndex?integer

Orca only: the fee tier's index.

tickLower*integer

The backing's lower tick.

tickUpper*integer

The backing's upper tick.

amount0*string

The backing's amount of the pool's first mint, in its smallest unit, as a decimal string.

amount1*string

The backing's amount of the pool's second mint, in its smallest unit, as a decimal string.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/solana/strategies/fill-reach?venue=orca&tokenA=string&tokenB=string&config=string&tickSpacing=1&tickLower=0&tickUpper=0&amount0=string&amount1=string"
{  "pool": "2AW9cYg6sGwMqkHczyxWRZXYErM7UTMgVcZfDj8J2gLg",  "tickCurrent": 0,  "outside": false,  "directions": [    {      "direction": 0,      "rungs": [        {          "tickLower": 1,          "tickUpper": 3,          "maxOut": "500000000"        }      ]    },    {      "direction": 1,      "rungs": [        {          "tickLower": -3,          "tickUpper": -1,          "maxOut": "500000000"        }      ]    }  ]}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}