0xAdventure
  • Overview
  • Product
    • Floorswap
      • USER GUIDE
        • Trading Modes
        • How to Buy NFTs?
        • How to Sell NFTs?
        • How to Set Your Slippage Tolerance?
        • How to Add Liquidity?
        • How to Increase Liquidity?
        • How to Remove Liquidity?
        • How to Manage Liquidity Positions?
        • How to Deposit?
        • How to Withdraw?
        • Fees
      • RISKS
      • TECHNICAL REFERENCE
        • Swap Method
        • Bonding Curve
      • DEVELOPERS
        • APIs
          • FloorSwap API V1.0
            • API Overview
            • Pool List
            • Pool Detail
            • Swap Info
            • Position Info
            • Position List
            • Position History
        • SDKs
          • Foorswap SDK V1.0
            • Pool
            • Position
            • Swap
            • Account
    • Launchpad
    • GAME Swap
    • Cross-chain bridge
    • AI-specialized NFT
    • AI narrative engine
    • AI creative partners
  • Tokenomics
  • Media Kit
Powered by GitBook
On this page
  1. Product
  2. Floorswap
  3. DEVELOPERS
  4. APIs
  5. FloorSwap API V1.0

Position History

get swap details

GET:

Copy

/api/v1/floor/position/history

Authorization information

There is currently no authorization information disclosed in the API.

Request

Name

Type

Required

Description

pairId

int

true

id of the position

type

int

true

operate type 1: swap token to nft 2: swap nft to token 3: init liquidity 4: increase liquidity 5: decrease liquidity 6: remove liquidity 10: claim earnings

page

int

false

pagination of the list, default is 1

Response

Name

Type

Description

Example

code

string

result code

200

message

string

the error message

Invalid key

success

boolean

whether the request success

true

data

object

​

​

- totalCount

int

total result

100

- pipeline

array

​

​

- type

int

operate type

1

- txHash

string

tx hash of the transaction

0xa31c6040f576e56ed312fcb920afc0e1c0f1ec114eccc3c83a246fe0ba0c51fc

- fromAddress

string

from address of the transaction

0xf9757e06a705afa7ceeacc619d39638effd758cd

- toAddress

string

to address of the transaction

0x62a49f0270a849730cf89c502992f91cc68dfee5

- networkFee

string

transaction fee(gwei)

50000000000000000

- detail

json

detail of the operate type

{"tokenIdList": ["4"], "virtualCount": 0}

- time

date

time of the transaction

​

​

PreviousPosition ListNextSDKs

Last updated 12 months ago