# How to use Mida with bitFlyer

A bitFlyer account is required to get started (create a bitFlyer account (opens new window)).

# Connection

How to connect to a bitFlyer Spot account.

import { connect, } from "@reiryoku/mida";

const myAccount = await connect("bitFlyer/Spot", {
    apiKey: "...",
    apiSecret: "...",

# Connection credentials

The apiKey and apiSecrect credentials are required to use Mida with a bitFlyer account, the credentials can be easily generated from the bitFlyer website.

  1. Create a bitFlyer account (opens new window) if you don't have one
  2. Visit bitFlyer (opens new window) and login
  3. Open "bitFlyer Lightning" from the left menu
  4. Open the left menu and then open the "API" page
  5. Use the "Generate New Key" button to generate the credentials
  6. Make sure to provide all the permissions for reading and trading according to your requirements

At this point it's possible to use Mida with the authorized bitFlyer account.

# Node.js bitFlyer API

The bitFlyer API is fully supported by Mida and can be used through Node.js/JavaScript or other programming languages, read the documentation for more examples.

# Something is not working?

Create an issue (opens new window) on GitHub if something is not working as expected.