Public
A set of apis for public use
Base URL address:
https://api.caviarnine.com
CaviarNine Aggregator
The aggregator at CaviarNine enables a significant proportion of the web2 information and functionality you see at caviarnine.com today. But firstly the disclaimer... CaviarNine Aggregator Public Endpoint Disclaimer
The CaviarNine Aggregator provides a public endpoint for requesting Radix trading manifests, delivering near-optimal routing instructions based on current data. This service is offered on an as-is and as-available basis without any warranties, guarantees, or representations of accuracy, reliability, or suitability for any particular purpose. While we strive to provide efficient routing information, external factors and inherent data limitations may impact the service's performance and output.
Currently, this endpoint is available free of charge as a public resource. Usage is subject to a rate limit of 5 requests per minute. CaviarNine Limited reserves the right to introduce fees, modify, restrict, or terminate access to this endpoint without prior notice. By using this service, you acknowledge and accept these terms, agreeing that CaviarNine Limited will not be held liable for any direct or indirect losses resulting from its use.
All routing instructions and data provided through this service are the intellectual property of CaviarNine Limited and are intended solely for informational purposes. Redistribution or commercial use without prior written consent from CaviarNine Limited is prohibited.
Users are advised to consider the security of their requests, as publicly accessible services may be susceptible to third-party interception or misuse. Additionally, the functionality and output of this endpoint may evolve to accommodate user needs, regulatory requirements, or technological advancements.
Resources
GET
/v1.0/aggregator/resources
Available resources that the aggregator has seen in the past and are possible to be able to swap. This does not mean there is a guaranteed swap available for the resource_address
Response
Solve & SolverStream
GET
/v1.0/aggregator/solve
GET
/v1.0/aggregator/solver_stream
Query Parameters
sell_resource_amount
(required): Specifies the amount of the resource to sell.sell_resource_address
(required): Specifies the address of the resource to sell.buy_resource_address
(required): Specifies the address of the resource to buy.account_address
(optional): Provides the address of the account making the transaction. If not provided, the response will not include a transaction manifest.
The /v1.0/aggregator/solve
and /v1.0/aggregator/solver_stream
endpoints provide near-optimal manifest routes within the Radix ecosystem, leveraging internal mappings and available liquidity to determine the best transaction paths.
Functionality Overview
The /solve
endpoint is designed to provide the best available solution by continuously refining its calculations. This endpoint waits up to 1 second for any additional improvements; if no further optimisations are found within that time, it returns the best price identified so far. This behaviour allows for a responsive solution without excessive delay, delivering near-optimal routes based on the available liquidity in the Radix ecosystem.
In contrast, the /solver_stream
endpoint is an HTTP2 connection that streams progressive solutions over a 10-second session. With each update, it returns increasingly optimised routes, allowing users to see the improvement in real-time and possibly a better final solution than the /solve endpoint.
Additional Notes:
If an account_address
is provided, the response will include a transaction manifest, which has been simulated at a Radix gateway. The response’s result
field summarises the key details from the simulation.
Both endpoints serve as powerful tools for efficient, liquidity-optimised transaction routing on the Radix network.
Example Query:
https://api.caviarnine.com/v1.0/aggregator/solve?sell_resource_amount=100&sell_resource_address=resource_rdx1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxradxrd&buy_resource_address=resource_rdx1t4upr78guuapv5ept7d7ptekk9mqhy605zgms33mcszen8l9fac8vf&account_address=account_rdx129m63lnnexyt90wpw6nkmshlhlvrp3gvry5f3usth2xnktev8qf2na
Example Response:
Old API endpoints:
Tokens
GET
https://api-core.caviarnine.com/v1.0/public/tokens
returns the resource_address to xrd price (mid, bid and ask if available) derived from the prices available on Radix
Last updated