下面以永续合约为例,说明一下如何获取获取最新成交价和买一和卖一价
获取买一和卖一:
https://www.bitmex.com/api/v1/orderBook/L2?symbol=XBTUSD&depth=1
获取最新成交价:
https://www.bitmex.com/api/v1/instrument?symbol=XBTUSD&columns=lastPrice&count=100&reverse=false
last price 即为最新成交价