<Price Inquiry> Interface

Obtain real-time price information of multiple platforms through the NFTId returned by the NFT List Interface

Request Address: /api/v1/meta/quote

Request Method: GET

Request Parameters:

Field Name
Field Description
Type
Required or not
Notes

equipmentNo

Device ID

string

Y

verison

API verison, must input V2 (default is V1)

string

Y

nftId

NFTPrimary Key id

integer

Y

platformId

NFT Platform Primary Key id

integer

Y

orderSide

1:Buy,0:Sell

string

Y

fromTokenAddress

Original contract address

string

Y

fromTokenChain

Original token chain

string

Y

fromAddress

Transaction initiate address

string

Y

Output Parameter:

Field Name
Field Description
Type

fromTokenAmount

Original token amount, times decimal

integer

fromTokenDecimal

Original token decimal

integer

toTokenAmount

Target token number, divided by decimal

integer

toTokenDecimal

Target token decimal

integer

dex

Swap platform

string

path

Swap route

array

fee

Transaction fee

decimal

feeToken

Transaction fee token

string

logoUrl

Logo address

string

platformId

Platform primary key id

integer

paymentInfo

Payment information

Object

txInfo

Parameters that when swap redeem

Object

Input Example:

https://api.paths.finance/api/v1/meta/quote?equipmentNo=0x76336d2903e8f6d62cc3f5d0528310&nftId=391069956913074176&platformId=386405378620468200&orderSide=1&fromTokenAddress=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&fromTokenChain=ETH&fromAddress=0x76336d2903e8f6d62cc3f5d05283108e3d2785e0&version=v2

Output Example:

{
    "resCode": "100",
    "resMsg": "Success",
    "data": {
        "txData": [
            {
                "fromTokenAmount": 336640037000000000000,
                "fromTokenDecimal": 18,
                "toTokenAmount": 1,
                "toTokenDecimal": 0,
                "dex": "OpenSea",
                "path": [],
                "fee": 0,
                "feeToken": "",
                "logoUrl": "https://opensea.io/static/images/logos/opensea.svg",
                "platformId": "386405378620468200",
                "paymentInfo": {
                    "paymentContract": "",
                    "paymentDecimals": 18
                },
                "txInfo": {
                    "depositCoinCode": "ETH",
                    "fromTokenChain": "ETH",
                    "orderSide": 1,
                    "isOrigin": false
                }
            }
        ]
    }
}

Postman Call Example

Last updated