Affiliate

GET Affiliate Info

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

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

Function Name:

getAffiliateInfo()

Usage:

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

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

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

let result = await getAffiliateInfo(myBlofinExchange, 
});

GET Referral Code

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

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

Function Name:

getReferralCode()

Usage:

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

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

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

let result = await getReferralCode(myBlofinExchange, 
});

GET Direct Invitees

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

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

Function Name:

getDirectInvites()

Usage:

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

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

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

let result = await getDirectInvites(myBlofinExchange, 
});

GET Sub Invitees

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

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

Function Name:

getSubInvitees()

Usage:

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

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

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

let result = await getSubInvitees(myBlofinExchange, 
});

GET Sub Affiliates

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

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

Function Name:

getSubAffiliates()

Usage:

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

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

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

let result = await getSubAffiliates(myBlofinExchange, 
});

Last updated