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,
});
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,
});
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,
});
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,
});
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,
});