get https://dapi.api.sui-prod.bluefin.io/marketData
Retrieves markets information
Client Library
import { Networks, BluefinClient } from "@bluefin-exchange/bluefin-v2-client";
async function main() {
const dummyAccountKey =
"trigger swim reunion gate hen black real deer light nature trial dust";
const client = new BluefinClient(
true,
Networks.TESTNET_SUI,
dummyAccountKey,
"ED25519" //valid values are ED25519 or Secp256k1
); //passing isTermAccepted = true for compliance and authorizarion
// load/init contract addresses
await client.init();
// exchangeInfo response
const resp = await client.getMarketData();
console.log(resp.data);
}
main().then().catch(console.error);
from config import TEST_ACCT_KEY, TEST_NETWORK
from pprint import pprint
import asyncio
from bluefin_v2_client import (
BluefinClient,
Networks,
MARKET_SYMBOLS,
)
async def main():
client = BluefinClient(True, Networks[TEST_NETWORK], TEST_ACCT_KEY)
await client.init(True)
exchange_info = await client.get_market_data(MARKET_SYMBOLS.ETH)
pprint(exchange_info)
await client.close_connections()
if __name__ == "__main__":
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
HTTPs
Alternatively, call the GET /marketData endpoint using the integrated editor on the right or locally from any language supporting HTTPs network calls.