# login()
Logins into a trading account.
To create a trading account, check the supported trading platforms.
TIP
Mida is platform-neutral, this means that any trading platform could be easily integrated in the ecosystem. Applications built with Mida can be easily executed on different trading platforms
- Binance Example
import { login, } from "@reiryoku/mida";
const myAccount = await login("Binance/Spot", {
apiKey: "***",
apiSecret: "***",
});
Read how to use Mida with Binance to get the apiKey
and apiSecret
credentials.
- cTrader Example
import { login, } from "@reiryoku/mida";
const myAccount = await login("cTrader", {
clientId: "***",
clientSecret: "***",
accessToken: "***",
cTraderBrokerAccountId: "***",
});
Read how to use Mida with cTrader to get the clientId
, clientSecret
,
accessToken
and cTraderBrokerAccountId
credentials.
- Multiple accounts Example
import { login, } from "@reiryoku/mida";
const myAccount1 = await login("cTrader", { ... });
const myAccount2 = await login("Binance/Spot", { ... });
const myAccount3 = await login("FTX/Futures", { ... });