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

Average Price

Testnet Env
https://testnet.trade.vessel.finance
Testnet Env
https://testnet.trade.vessel.finance
GET
/api/v1/public/avgPrice
Last modified:2024-10-15 06:23:56
Average Price provides the average price of a trading pair(e.g., WBTCUSDT) over a specific time (5 minutes) period.

Request

Query Params
symbol
string 
required
Specifies the trading pair symbol. (e.g., WBTCUSDT).
Example:
WBTCUSDT

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/public/avgPrice'

Responses

🟢200OK
application/json
Body
mins
string 
required
The time interval for which the average price is calculated.
price
string 
required
The average price for the symbol which you required over the specified time interval.
Example
{
  "mins": "5",
  "price": "61072.96"
}
Previous
Recent Trades List
Next
AMM Pool Last 24h Data
Built with