QUANTA Documentation
  • Documentation
  • Introduction
    • Fair Trading Protocol
  • Getting Started
    • Building Source Code
    • Running Quanta Node
    • Running Quanta Wallet
    • Running on Docker
  • Testnet
    • Create account
    • Transfer ETH/ERC-20
    • Become a Block Producer
  • Guides
    • Websockets
    • Trading Bot
  • SDK
    • Javascript
  • API
    • Markets
  • Advanced
    • Issuing your own QUANTA Token
    • Deploy your own exchange on AWS
Powered by GitBook
On this page
  • ticker
  • 24hvolume
  • orderbook
  • tradehistory
  • chartdata

Was this helpful?

  1. API

Markets

ticker

GET https://api-gw.quantadex.com/mainnet/api/ticker

Retrieves summary information for each currency pair listed on the exchange.

{
  "ETH/BTC": {
    "time": "2019-07-25T23:45:52",
    "base": "ETH",
    "quote": "BTC",
    "latest": "45.1944444444444444444",
    "lowest_ask": "0",
    "highest_bid": "45.4375",
    "percent_change": "0",
    "base_volume": "0",
    "quote_volume": "0"
  },
  "LTC/BTC": {
    "time": "2019-07-25T23:45:52",
    "base": "LTC",
    "quote": "BTC",
    "latest": "76.2388818297331639135",
    "lowest_ask": "76.2388818297331639135",
    "highest_bid": "0",
    "percent_change": "0",
    "base_volume": "0",
    "quote_volume": "0"
  },
...

24hvolume

GET https://api-gw.quantadex.com/mainnet/api/24hvolume

Returns the 24-hour volume for all markets as well as totals for primary currencies.

{
  "ETH/BTC": {
    "ETH": "0",
    "BTC": "0"
  },
  "LTC/BTC": {
    "LTC": "0",
    "BTC": "0"
  },
...

orderbook

GET https://api-gw.quantadex.com/mainnet/api/orderbook?currencyPair=QDEX_ETH&depth=50

Returns the order book for a given market. You may set currencyPair to "all" to get the order books of all markets.

Query Parameters

Name
Type
Description

depth

integer

Default depth is 50. Max depth is 50

currencyPair

string

A pair like QDEX_ETH. Default is all

{
  "QDEX/ETH": {
    "bids": [
      [
        "0.0000005",
        "500000"
      ],
      [
        "0.000001",
        "80000"
      ],
...
      [
        "0.00000201",
        "15000"
      ],
      [
        "0.0000301100000225559",
        "0.33211"
      ]
    ],
    "asks": [
      [
        "0.000266533185314408",
        "504.44000"
      ],
      [
        "0.0002665848214285714",
        "434.94600"
      ],
...

tradehistory

GET https://api-gw.quantadex.com/mainnet/api/tradehistory?currencyPair=QDEX_BTC

Returns the past 100 trades for a given market.

Request Body

Name
Type
Description

currencyPair

string

A pair like QDEX_ETH

[
  {
    "date": "2019-07-21T12:38:28.000Z",
    "type": "sell",
    "price": 0.00003011,
    "amount": 1673.8625,
    "total": 0.050399999875000004
  },
  {
    "date": "2019-07-19T00:24:38.000Z",
    "type": "sell",
    "price": 0.00003011,
    "amount": 2270.00996,
    "total": 0.0683499998956
  },
...

chartdata

GET https://api-gw.quantadex.com/mainnet/api/chartdata?currencyPair=QDEX_ETH&period=86400&start=2019-04-08T00:00:00&end=2019-07-01T00:00:00

Returns candlestick chart data.

Query Parameters

Name
Type
Description

end

string

The end of the window in YYYY-MM-DDTHH:MM:SS

start

string

The start of the window in YYYY-MM-DDTHH:MM:SS

period

integer

Candlestick period in seconds. Valid values are 60, 300, 900, 1800, 3600, 86400.

currencyPair

string

A pair like QDEX_ETH

[
  {
    "time": 1554768000000,
    "open": 0.0001,
    "high": 0.0001,
    "low": 0.0001,
    "close": 0.0001,
    "volume": 30
  },
  {
    "time": 1556064000000,
    "open": 0.00007539772298876575,
    "high": 0.00009165230780511054,
    "low": 0.00007539772298876575,
    "close": 0.00009165230780511054,
    "volume": 0.67817
  },
...
PreviousJavascriptNextIssuing your own QUANTA Token

Last updated 5 years ago

Was this helpful?