Vessel Finance API
  1. Account
Vessel Finance API
  • Introduction
  • General Info
  • HMAC Signature Guide
  • Poseidon Signature Guide
  • Internal Transfer Signature Guide
  • Error Code
  • Vessel REST API
    • Public
      • Market Data
        • 24hr Ticker Statistics
        • Kline / Candlestick Data
        • Order Book
        • Recent Trades List
        • Average Price
        • AMM Pool Last 24h Data
      • Exchange Data
        • Ticker Info
        • Asset Info
        • Trade Fee
        • AMM Pool Info
    • User
      • Asset
        • User Asset
        • Withdraw
        • Withdraw History
        • Deposit History
        • Claim History
        • Internal Transfer (Send)
        • Internal Transfer History
      • Order
        • Place Order
        • Cancel Order
        • Open Orders
        • Completed Orders
        • All Orders
        • Query Order
        • Modify Order
      • AMM
        • Add Liquidity
        • Remove Liquidity
        • Collect Fee
        • AMM Position
        • AMM Action History
      • Account
        • User Profile
          GET
        • User Trade List
          GET
  • Vessel WebSocket
    • Market
      • Order Book
      • K Line
      • Recent Trades
      • 24hr Ticker Statistics
      • Ticker Setting Upade
    • User
      • Authorize
      • Balance
      • Account
  1. Account

User Trade List

Testnet Env
https://testnet.trade.vessel.finance
Testnet Env
https://testnet.trade.vessel.finance
GET
/api/v1/gateway/user/myTrades
Last modified:2024-10-15 06:23:56
User Trade History provides users with a detailed history of their trade transactions for a specific trading pair (symbol) on our platform.

Request

Query Params
symbol
string 
optional
The trading pair symbol for which trade history is requested.
Example:
WBTCUSDT
startTime
string 
optional
The start time of the time range for filtering history (Unix timestamp in milliseconds).
Example:
1700779414660
endTime
string 
optional
The end time of the time range for filtering history (Unix timestamp in milliseconds).
Example:
1700779414669
limit
string 
optional
Specifies the maximum number of user trade history entries to retrieve (Default is 500. Maximum is 1000).
fromId
string 
optional
The ID from which to start fetching records. In this API, since the order is descending (backwards), if fromId is set to 100, the system will return records starting from the ID just before 100 and continue moving backwards. The retrieval will proceed until the limit is reached.
Header Params
VESSEL-API-KEY
string 
required
Default:
{{API_KEY}}
VESSEL-PASSPHRASE
string 
required
Default:
{{API_PASSPHRASE}}
VESSEL-SIGNATURE
string 
required
Use signRequest script to generate
VESSEL-TIMESTAMP
string 
required
Use signRequest script to set

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://testnet.trade.vessel.finance/api/v1/gateway/user/myTrades?symbol=WBTCUSDT&startTime=1700779414660&endTime=1700779414669&fromId' \
--header 'VESSEL-API-KEY;' \
--header 'VESSEL-PASSPHRASE;' \
--header 'VESSEL-SIGNATURE;' \
--header 'VESSEL-TIMESTAMP;'

Responses

🟢200OK
application/json
Body
trades
array [object {11}] 
required
An array containing details for each trade.
id
string 
required
Unique identifier for the trade.
symbol
string 
required
Trading pair symbol for the trade.
price
string 
required
Price at which the trade was executed.
side
string 
required
Side of the trade, indicating whether it was a "BUY" or "SELL" order.
qty
string 
required
Quantity of base token in this trade.
quoteQty
string 
required
Quantity of quote token in this trade.
isBuyerMaker
boolean 
required
Indicates whether the buyer is the maker of the trade.
isMaker
boolean 
required
Indicates whether the trader is the maker of the trade.
feeCurrency
string 
required
Currency in which the trading fee is applied.
fee
string 
required
Amount of trading fee applied for the trade.
time
string 
required
Timestamp when the trade occurred (Unix timestamps in milliseconds & UTC).
Example
{
  "trades": [
    {
      "id": "1728640580315091",
      "symbol": "WBTCUSDT",
      "price": "61140",
      "side": "SELL",
      "qty": "0.0003",
      "quoteQty": "18.342",
      "isBuyerMaker": true,
      "isMaker": false,
      "feeCurrency": "USDT",
      "fee": "0.036684",
      "time": "1728708856283"
    },
    {
      "id": "1728640580315089",
      "symbol": "WBTCUSDT",
      "price": "61150",
      "side": "SELL",
      "qty": "0.0006",
      "quoteQty": "36.69",
      "isBuyerMaker": true,
      "isMaker": false,
      "feeCurrency": "USDT",
      "fee": "0.07338",
      "time": "1728708856282"
    }
  ]
}
Previous
User Profile
Next
Vessel WebSocket
Built with