Swagger UI

Explore

Rubic API 1.0 (OAS 3.0)

The Rubic API description

Info

GET /api/info/chains Get list of supported chains list

GET /api/info/providers

GET /api/info/status

GET /api/info/statusExtended


Router

POST /api/routes/quoteAll

POST /api/routes/quoteBest

POST /api/routes/quoteDepositTrades

Parameters

  • Try it out

  • No parameters

Request body (application/json) Description for the Post Body

Examples: ETH.NATIVE to POLYGON.NATIVE ETH.USDT to POLYGON.USDT ETH.USDT to BNB.USDT ETH.USDT to ETH.ETH SOL.USDT to ETH.USDT ETH.USDT to SOL.USDT SOL.USDT to SOL.USDC ETH.USDC to TRON.USDC TON.USDT to TON.TON BTC.BITCOIN to MERLIN.BTC BTC.BITCOIN to ETH.WBTC SUI.NATIVE to SUI.USDC ETH.NATIVE to SUI.NATIVE

Example Value Schema

Request body example
{
  "dstTokenAddress": "0x0000000000000000000000000000000000000000",
  "dstTokenBlockchain": "POLYGON",
  "referrer": "rubic.exchange",
  "srcTokenAddress": "0x0000000000000000000000000000000000000000",
  "srcTokenAmount": "1.05",
  "srcTokenBlockchain": "ETH"
}

Responses

Code
Description
Links

200

Media type application/json Controls Accept header. - Example Value - Schema ```json

{

"quote": {

"srcTokenAddress": "string",
"dstTokenBlockchain": "POLYGON",
"srcTokenBlockchain": "ETH",
"srcTokenAmount": "1.05",
"dstTokenAddress": "0x0000000000000000000000000000000000000000",
"nativeBlacklist": [],
"showFailedRoutes": false,
"showDangerousRoutes": false,
"depositTradeParams": "all",
"integratorAddress": "string",
"fromAddress": "string",
"slippage": 0.02,
"receiver": "string",
"preferredProvider": "symbiosis",
"foreignBlacklist": {
  "dflow": [],
  "lifi": [],
  "rango": [],
  "zerox": []
},
"timeout": 32,
"enableTestnets": false,
"referrer": "rubic.exchange",
"enableChecks": false,
"skipFeeProviders": false

}, "routes": [ {} ], "failed": [ {} ] }


POST [/api/routes/swap](https://api-v2.rubic.exchange/api/swagger/#/Router/RouterController_getSwap)

POST [/api/routes/swapBest](https://api-v2.rubic.exchange/api/swagger/#/Router/RouterController_getSwapBest)

POST [/api/routes/swapDepositTrade](https://api-v2.rubic.exchange/api/swagger/#/Router/RouterController_getSwapDepositTrade)

---

### Tokens
GET [/api/tokens/](https://api-v2.rubic.exchange/api/swagger/#/Tokens/TokensController_getStatus)

---

### Utility
GET [/api/utility/allowance](https://api-v2.rubic.exchange/api/swagger/#/Utility/UtilsController_getAllowance)

GET [/api/utility/authWalletMessage](https://api-v2.rubic.exchange/api/swagger/#/Utility/UtilsController_getMessageToAuth)

GET [/api/utility/celerRefund](https://api-v2.rubic.exchange/api/swagger/#/Utility/UtilsController_celerRefund)

GET [/api/utility/checkApprove](https://api-v2.rubic.exchange/api/swagger/#/Utility/UtilsController_checkApprove)

GET [/api/utility/claim](https://api-v2.rubic.exchange/api/swagger/#/Utility/UtilsController_claimTokens)

GET [/api/utility/healthcheck](https://api-v2.rubic.exchange/api/swagger/#/Utility/UtilsController_healthcheck)

POST [/api/utility/solana/relay](https://api-v2.rubic.exchange/api/swagger/#/Utility/RelayController_relay)

---

### Schemas
- ForeignBlacklistDto
- QuoteRequestDto
- QuoteAllDto
- TokenAmountDto
- TokenDto
- QuoteTokensDto
- EstimatesDto
- GasFeeDto
- ProtocolFeeDto
- ProviderFeeDto
- PercentFeeDto
- FeesDto
- RoutingDto
- TonEncodedConfigDto
- TransactionDto
- ErrorDto
- QuoteResponseDto
- QuoteDepositRequestDto
- SwapRequestDto
- UniqueInfoDto
- SwapResponseDto
- SwapDepositRequestDto
- ApproveResponseDto
- AllowanceResponseDto
- ChainDto
- ProviderChainDto
- CrossChainProviderDto
- OnChainProviderDto
- ProvidersDto
- StatusResponseDto
- TokenSecurityDto
- TokenBackDto
- TokensResponseDto
- RelayRequestDto
- RelayResponseDto

Was this helpful?