Public Data
Last updated
Last updated
Please refer to the official BloFin API Docs for the Required parameters.
getInstruments()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getInstruments(exchange, options) {
try {
let result = await exchange.getInstruments(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getInstruments(myBlofinExchange,
});
Please refer to the official BloFin API Docs for the Required parameters.
getTickers()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getTickers(exchange, options) {
try {
let result = await exchange.getTickers(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getTickers(myBlofinExchange,
});
Please refer to the official BloFin API Docs for the Required parameters.
getOrderBook()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getOrderBook(exchange, options) {
try {
let result = await exchange.getOrderBook(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getOrderBook(myBlofinExchange,
});
Please refer to the official BloFin API Docs for the Required parameters.
getTrades()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getTrades(exchange, options) {
try {
let result = await exchange.getTrades(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getTrades(myBlofinExchange, {
instId: "<String>"
});
Please refer to the official BloFin API Docs for the Required parameters.
getMarkPrice()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getMarkPrice(exchange, options) {
try {
let result = await exchange.getMarkPrice(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getMarkPrice(myBlofinExchange, {
instId: "<String>"
});
Please refer to the official BloFin API Docs for the Required parameters.
getFundingRate()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getFundingRate(exchange, options) {
try {
let result = await exchange.getFundingRate(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getFundingRate(myBlofinExchange, {
instId: "<String>"
});
Please refer to the official BloFin API Docs for the Required parameters.
getFundingRateHistory()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getFundingRateHistory(exchange, options) {
try {
let result = await exchange.getFundingRateHistory(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getFundingRateHistory(myBlofinExchange, {
instId: "<String>"
});
Please refer to the official BloFin API Docs for the Required parameters.
getCandleSticks()
import { createExchange } from "./exchanges/exchange.js";
let myBlofinExchange = createExchange({
exchange: "blofin",
authenticate: "true",
key: "myKey",
secret: "mySecret",
passphrase: "myPassphrase",
label: "blofin"
});
async function getCandleSticks(exchange, options) {
try {
let result = await exchange.getCandleSticks(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getCandleSticks(myBlofinExchange, {
instId: "<String>"
});