Knowledge Base
  • 💡Welcome To PointPay
  • 📃WhitePapper v 1.0
    • Disclaimer
    • Market Overview
      • Overview of 2018-2023
      • Evolution and Statement
      • Challenges and Opportunities
    • PointPay 2.0
      • Ecosystem Overview
      • Services Synergy
    • Crypto Exchange
      • Main Benefits
      • Security Measures
      • Customer Support
    • Digital Vault
      • Role in Ecosystem
      • Features and Benefits
      • Integration with other Services
    • PointPay Token
      • Token Info
      • Utility and Benefits
    • Project Future
      • Project Vision
      • Upcoming Features
    • Conclusion
  • 📈Tokenomics
  • ⚖️Token Swap Flow
  • 🔗Network
    • Mainnet&TestNet
    • Smart contracts
      • Contract Deployment
      • Deploy with Remix IDE
      • Deploy with Thirdweb
    • Explorer API
    • RPC API
  • Exchange API Documentation
    • Public endpoints | HTTP
      • Pairs List
      • Pairs Stats
      • Specific Pair Stats
      • Order Book Data
      • Market History
      • Market History Data
      • Products
      • Symbols
      • Depth List
      • Chart Data KLine
    • Private endpoints | HTTP
      • Authentication and API Keys
      • Create Limit Order
      • Cancel Order
      • My Active Orders
      • All My Trade Balances
      • My Specific Trade Balance
      • My Order Info
      • My Trades Info
      • My Order History
      • My Order History List
    • Basic structure | WEBSOKET
    • Public methods | WEBSOKET
      • Ping-Pong
      • System Time
      • KLine methods
      • Market Price methods
      • Market Status methods
      • Deals methods
      • Depth methods
    • Private methods | WEBSOKET
      • Authorization
      • My Assets methods
      • My Orders methods
Powered by GitBook
On this page
  • List of Market Price methods:
  • Market Price Query method
  • Market Price Subscribe method
  • Market Price Unsubscribe method
  1. Exchange API Documentation
  2. Public methods | WEBSOKET

Market Price methods

Used to get information about the market price for a specific pair.

PreviousKLine methodsNextMarket Status methods

Last updated 7 months ago

List of Market Price methods:

  • - used for one-time data get requests.

  • - used to subscribe to receive real-time updates.

  • - used to unsubscribe from the method.

Market Price Query method

Used for one-time data get requests.

Method

price.query

Request "params" parameters

Name
Type
Desciption
Example

market*

STRING

Any public pair

BTC_USDT

Request example

{
  "method":"price.query",
  "params":
    [
      "BTC_USDT"
    ],
  "id":1
}

Response "params" and "result" parameters

Name
Type

market

STRING

price

STRING

{
    "id": 1,
    "params": [
        "BTC_USDT"      // market
    ],
    "result": "63678",  // price
    "error": null
}

Market Price Subscribe method

Used to subscribe to receive real-time updates.

Method

price.subscribe

Request "params" parameters

Name
Type
Desciption
Example

market*

STRING

Any public pair

BTC_USDT

Request example

{
    "method":"price.subscribe",
    "params":
    [
        "BTC_USDT"
    ],
    "id":1
}

Response example (successfully subscribed)

{
    "id": 1,
    "params": [],
    "result": {
        "status": "success"
    },
    "error": null
}

Response "params" parameters ("price.update")

Name
Type

market*

STRING

price*

STRING

Response example ("price.update")

{
    "id": null,
    "method": "price.update",
    "params": [
        "BTC_USDT",         // market
        "63770.00000000"   // price
    ]
}

Market Price Unsubscribe method

Method

price.unsubscribe

Request Example

{
  "method":"price.unsubscribe",
  "params":[],
  "id":2
}

Response example (successfully unsubscribed)

{
    "id": 2,
    "params": [],
    "result": {
        "status": "success"
    },
    "error": null
}

Used to unsubscribe from the method.

Market Price Query
Market Price Subscribe
Market Price Unsubscribe
Market Price Subscribe
Market Price Subscribe