MetaPath API
  • API Introduction
    • General Instruction
    • Major Blockchain Name Conventions
  • Cross-platform Aggregator Interface
    • Token Swap Flow
    • Get <The Token List> Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • <BlackList> Interface
  • Upload gas free orders
  • Aggregate NFTs Interface V1.0
    • Get <Basic Information> Interface
    • Get <NFT List> Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • Get <NFT List Held by User> Interface
  • Aggregate NFTs Interface V2.0
    • Get <Latest Collections> Interface
    • Get <Top NFT Collections> Interface
    • <List Page> Interface
    • Get <NFT Details> Interface
    • Get <NFT Details> Other Related Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • <Batch Purchase> Interface
  • List Related Interface
    • Get <User's NFT> Interface
    • Get <Listed NFT List (My List)> Interface
    • <Create/Update Listing> Interface
    • <Create/Update Listing in the Backend> Interface
    • <Cancel Listing> Interface
    • <Change Listing> Interface
  • Swap Information Related Interface
    • <Add Swap Information> Interface
    • <Get Swap Information List> Interface
    • <Get Detailed Transation Infromation > Interface
Powered by GitBook
On this page
  1. Aggregate NFTs Interface V1.0

<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 Parameter:

Field Name
Field Description
Type
Required or not
Notes

equipmentNo

Device ID

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:

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

PreviousGet <NFT List> InterfaceNext<Swap> Interface

Last updated 2 years ago

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