Quote

Integrate our advanced Leverage API to enable on-chain leveraged trading within your application. Compatible with major blockchains like Solana, Ethereum, Base, Arbitrum, and Binance Chain.

Request trade quote

POST /quote

Retrieve trade cost, liquidation price and current price

Headers

Name
Value
Description

Content-Type

application/json

Set to application/json to define the payload format.

cert

Python (requests): tuple

Path to the certificate and key file as a tuple (e.g., (cert_path, key_path)).

cURL: --cert and --key

Separate paths to the certificate and key (e.g., --cert cert_path --key key_path).

Java (Apache HttpClient): KeyStore

Certificate and key loaded into SSLContext or KeyStore.

Body

Name
Type
Description

apikey

string

Name of the user

network_choice

string

SOL / ETH / BASE / ARB / BSC

contract_address

string

Token Address

leverage

float

e.g. 5.0. / 5.5 /

initial_amount

float

In Native e.g. 0.1 / 10.0 / 100

Response


{
    "current_price": "0.00000006048819407141113196658559246834951927951352",
    "liquidation_price": "0.00000004637428212141520426252324109037128430088615",
    "message": "Quote executed successfully",
    "status": "success",
    "timestamp": "2025-01-21 15:59:48",
    "trade_cost": "0.0011"
}

Last updated