Integral Size API (0.1.0)

Download OpenAPI specification:Download

Order

order-history

Get order history

Request Body schema: application/json
address
required
string

wallet address

limit
required
integer

pagination size

network
required
string
Value: "Mainnet"

Ethereum network, it shoud be Mainnet

offset
required
integer

pagination offset

Responses

Request samples

Content type
application/json
{
  • "address": "0xd8800c345e14d205e06d1d2b82981642d5defd9a",
  • "limit": 10,
  • "network": "Mainnet",
  • "offset": 0
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

order status

Get the order status by transaction hash or nonces

Request Body schema: application/json
network
required
string
address
required
string
required
Array of objects[ items ]

Responses

Request samples

Content type
application/json
{
  • "network": "Mainnet",
  • "address": "0xd8800c345e14d205e06d1d2b82981642d5defd9a",
  • "orders": [
    ]
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

Trade

price comparator

Get different price , cost savings compared with FIVE from different exchanges

query Parameters
network
required
string
Example: network=Mainnet
tokenInAddress
required
string
Example: tokenInAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
tokenOutAddress
required
string
Example: tokenOutAddress=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
amountIn
required
string
Example: amountIn=1000000000000000000

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

pair twap and spot price

Get pair TWAP and spot price of different timeframe

query Parameters
network
required
string
Example: network=Mainnet

Ethereum mainnet

tokenInAddress
required
string
Example: tokenInAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

token address

tokenOutAddress
required
string
Example: tokenOutAddress=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

token address

timeframe
required
string
Example: timeframe=12h

timeframe(1h | 4h | 12h | 1d | 7d | 30d | 6m | 12m)

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

estimate liquidity out

Since enqueued orders will be executed and impact the pool liquidity, this api will give an estimated liquidity taking enqueued orders into consideration

query Parameters
network
required
string
Example: network=Mainnet

wallet account

tokenInAddress
required
string
Example: tokenInAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

token address

tokenOutAddress
required
string
Example: tokenOutAddress=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

token address

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

token prices

Obtain latest active token prices (CMC)

query Parameters
network
required
string
Example: network=Mainnet

Ethereum mainnet

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

pair slippage

Get the current pair slippage, taking TWAP price and spot price into consideration

query Parameters
network
string
Example: network=Mainnet
pairAddress
string
Example: pairAddress=0x2fe16Dd18bba26e457B7dD2080d5674312b026a2

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

price impact

Get the price impacts from different exchange, giving specific pair and amount in

query Parameters
network
required
string
Example: network=Mainnet

Ethereum mainnet

tokenInAddress
required
string
Example: tokenInAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

token address

tokenOutAddress
required
string
Example: tokenOutAddress=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

token address

amountIn
required
string
Example: amountIn=1000000000000000000

input amount

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

pool lists

Obtain active pool informations, like token balances and LP tokens

query Parameters
network
required
string
Example: network=Mainnet

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

trade summaries

Get trade summaries

query Parameters
address
required
string
Example: address=0xcfd727653c3d5a1b943f675781d3245b884f1d34

wallet account to query the trade summaries

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

ITGR Token

ITGR staked amounts

Get ITGR staked amounts

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

ITGR total supply

Get ITGR total supply

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

token-rewards

trade mining rewards, LP mining rewards, trade mining multipliers and LP mining multipliers

query Parameters
address
required
string
Example: address=0xc858f12834015dce428929136dd205f5735e1bce

wallet account

network
required
string
Example: network=Mainnet

Ethereum mainnet

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": {
    }
}

time release

Get time release list, each of which contains the number of locked token, the number of claimed token and the number of claimable token

query Parameters
network
required
string
Example: network=Mainnet

Ethereum mainnet

address
required
string
Example: address=0x000008526602ff3d804628a259d144143142cde1

Wallet account

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "data": [
    ]
}

ITGR circulating supply

Get the circulating supply of ITGR

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}