Public API

All Public API are listed below with details:

 

markets

Request URL

https://bsgex.com/api/v2/markets.json

Response Body

[
  {
    "id": "bsgbtc",
    "name": "BSG/BTC"
  }
]
 
tickers

Request URL

https://bsgex.com/api/v2/tickers/bsgbtc.json

Response Body

{
"at": 1541258399,
"ticker": {
"buy": "0.000048",
"sell": "0.00005",
"low": "0.0",
"high": "0.0",
"last": "0.000048",
"vol": "0.0"
}
}
 
order_book

Request URL

https://bsgex.com/api/v2/order_book.json?market=bsgbtc

Response Body

{
  "asks": [
    {
      "id": 7,
      "side": "sell",
      "ord_type": "limit",
      "price": "0.00005",
      "avg_price": "0.0",
      "state": "wait",
      "market": "bsgbtc",
      "created_at": "2018-10-27T08:21:07Z",
      "volume": "200.0",
      "remaining_volume": "200.0",
      "executed_volume": "0.0",
      "trades_count": 0
    },
    ...
  ],
  "bids": [
    {
      "id": 1,
      "side": "buy",
      "ord_type": "limit",
      "price": "0.000048",
      "avg_price": "0.000048",
      "state": "wait",
      "market": "bsgbtc",
      "created_at": "2018-10-27T08:16:09Z",
      "volume": "1000.0",
      "remaining_volume": "900.0",
      "executed_volume": "100.0",
      "trades_count": 1
    },
    ...
  ]
}
 
depth

Request URL

https://bsgex.com/api/v2/depth.json?market=bsgbtc

Response Body

{
  "timestamp": 1541259025,
  "asks": [
    [
      "0.000062",
      "200.0"
    ],
    ...
  ],
  "bids": [
    [
      "0.000048",
      "900.0"
    ],
    ...
  ]
}
 
trades

Request URL

https://bsgex.com/api/v2/trades.json?market=bsgbtc

Response Body

[
  {
    "id": 1,
    "price": "0.000048",
    "volume": "100.0",
    "funds": "0.0048",
    "market": "bsgbtc",
    "created_at": "2018-10-27T08:23:48Z",
    "side": null
  }
]
 
timestamp

Request URL

https://bsgex.com/api/v2/timestamp.json

Response Body

1541259531