Vessel Finance API
  1. Market Data
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
          GET
        • Kline / Candlestick Data
          GET
        • Order Book
          GET
        • Recent Trades List
          GET
        • Average Price
          GET
        • AMM Pool Last 24h Data
          GET
      • 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
        • User Trade List
  • Vessel WebSocket
    • Market
      • Order Book
      • K Line
      • Recent Trades
      • 24hr Ticker Statistics
      • Ticker Setting Upade
    • User
      • Authorize
      • Balance
      • Account
  1. Market Data

Recent Trades List

Testnet Env
https://testnet.trade.vessel.finance
Testnet Env
https://testnet.trade.vessel.finance
GET
/api/v1/gateway/public/trades
Last modified:2024-07-31 16:53:17
Recent Trades List allows users to retrieve information about the most recent trades executed on our platform.

Request

Query Params
symbol
string 
required
The trading pair symbol for which recent trade information is requested.
Example:
WBTCUSDT
limit
integer 
optional
Default 500; max 1000.
Example:
2

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/public/trades?symbol=WBTCUSDT&limit=2'

Responses

🟢200OK
application/json
Body
error
boolean 
required
Indicates whether the API request encountered any errors.
trades
array [object {7}] 
required
An array containing details of the most recent trades.
id
integer 
required
A unique identifier for the trade.
symbol
string 
required
The trading pair symbol for the trade.
price
string 
required
The price at which the trade was executed.
qty
string 
required
The quantity of the base asset executed in the trade.
quoteQty
string 
required
The quantity of the quote asset executed in the trade.
time
integer 
required
The timestamp when the trade was executed (Unix timestamps in milliseconds & UTC).
isBuyerMaker
boolean 
required
Indicates whether the buyer is the maker of the executed trade.
Example
{
  "error": false,
  "trades": [
    {
      "id": 91108,
      "symbol": "WBTCUSDT",
      "price": "33415.39000000",
      "qty": "0.01000000",
      "quoteQty": "334.15390000",
      "time": 1700805766320,
      "isBuyerMaker": false
    },
    {
      "id": 91107,
      "symbol": "WBTCUSDT",
      "price": "33407.53000000",
      "qty": "0.09000000",
      "quoteQty": "3006.67770000",
      "time": 1700805766320,
      "isBuyerMaker": false
    }
  ]
}
Previous
Order Book
Next
Average Price
Built with