Account

GET Balance

Please refer to the official Blofin API Docs for the Required parameters.

https://docs.blofin.com/index.html#get-balance

Function Name:

getBalance()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBlofinExchange  = createExchange({
      exchange: "blofin",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "blofin"
  });

async function getBalance(exchange, options) {
    try {
        let result = await exchange.getBalance(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getBalance(myBlofinExchange, {
	accountType: "<String>"
});

GET Funds Transfer History

Please refer to the official Blofin API Docs for the Required parameters.

https://docs.blofin.com/index.html#get-funds-transfer-history

Function Name:

getFundsTranferHistory()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBlofinExchange  = createExchange({
      exchange: "blofin",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "blofin"
  });

async function getFundsTranferHistory(exchange, options) {
    try {
        let result = await exchange.getFundsTranferHistory(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getFundsTranferHistory(myBlofinExchange, 
});

GET Withdraw History

Please refer to the official Blofin API Docs for the Required parameters.

https://docs.blofin.com/index.html#get-withdraw-history

Function Name:

getWithdrawHistory()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBlofinExchange  = createExchange({
      exchange: "blofin",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "blofin"
  });

async function getWithdrawHistory(exchange, options) {
    try {
        let result = await exchange.getWithdrawHistory(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getWithdrawHistory(myBlofinExchange, 
});

GET Deposit History

Please refer to the official Blofin API Docs for the Required parameters.

https://docs.blofin.com/index.html#get-deposit-history

Function Name:

getDepositHistory()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBlofinExchange  = createExchange({
      exchange: "blofin",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "blofin"
  });

async function getDepositHistory(exchange, options) {
    try {
        let result = await exchange.getDepositHistory(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getDepositHistory(myBlofinExchange, 
});