Author

Topic: About BISQ API (Read 116 times)

legendary
Activity: 2324
Merit: 6006
bitcoindata.science
June 23, 2021, 12:32:12 PM
#3
0"}]

Other than that here it is:
https://bisq.markets/api/offers?market=btc_usd&format=jsonpretty
https://bisq.markets/api/trades?market=btc_usd

I actually didn't have any experience with Bisq but I hope that helps.


Thank you, that is what I was looking for.

I was able to find a better one that will fit my needs. The ticker endpoint, not market:
https://bisq.markets/api/ticker?market=btc_usd
Code:
"last":"36209.46030000","high":"37459.81270000","low":"32642.48390000","volume_left":"0.53620000","volume_right":"18539.72910000","buy":"31732.68540000","sell":"35144.80210000"}

this is strange that those endpoints are not mentioned in the api documentation. wierd.
legendary
Activity: 1932
Merit: 1273
June 23, 2021, 10:45:22 AM
#2
I was able to find BISQ marketdata in this page, but I would like an API response:
https://bisq.network/markets/?currency=btc_usd
Upon inspecting the network log when I opened that link, I could get few API calls that might be what you looking for
{"period_start":"2021-06-22T00:00:00.000Z","open":"34860.09150000","close":"34963.91910000","high":"36712.98160000","low":"30852.91730000","avg":"33320.62673910","volume_right":"25147.07700000","volume_left":"0.75470000"},{"period_start":"2021-06-23T00:00:00.000Z","open":"35481.06850000","close":"34773.54290000","high":"37459.81270000","low":"34028.75850000","avg":"35186.20172156","volume_right":"9401.75310000","volume_left":"0.26720000"}]

Other than that here it is:
https://bisq.markets/api/offers?market=btc_usd&format=jsonpretty
https://bisq.markets/api/trades?market=btc_usd

I actually didn't have any experience with Bisq but I hope that helps.

legendary
Activity: 2324
Merit: 6006
bitcoindata.science
June 23, 2021, 10:04:41 AM
#1
I am recently searching for exchanges market data, and I am having some trouble with BISQ API. Maybe someone can help?

https://bisq.markets/api

I was impressed that there is no http endpoint for marketdata, like all centralized exchanges have. For example, look at coinbase:

https://api-public.sandbox.pro.coinbase.com/products/BTC-USD/ticker
Code:
{
"trade_id": 31005739,
"price": "33956.43",
"size": "0.00029405",
"time": "2021-06-23T13:58:58.836006Z",
"bid": "33956.41",
"ask": "33956.43",
"volume": "24535.55485025"
}

I was able to find BISQ marketdata in this page, but I would like an API response:
https://bisq.network/markets/?currency=btc_usd

After a few tries, using their websocket client, I was able to get last price in USD, but no Volume neither other currency data:
I made a jsfiddle here
https://jsfiddle.net/du0fLon9/

If I sent a message "stats" I get the response
Code:
> SENT: stats

> RESPONSE: {"conversions":{"USD":34183.23365232756}}

Can anyone help? I am sure there is some way to get this data, as bisq is open source
Jump to: