# getTrades()

Returns the trading account most recent trades for a symbol.
The amount of trades returned is at the discretion of the trading platform.

  • Interface
class MidaTradingAccount {
    getTrades (symbol: string): Promise<MidaTrade[]>;
}
  • Example 1
const myEtherTrades = await myAccount.getTrades("ETHUSDT");
  • Example 2
const myAppleTrades = await myAccount.getTrades("#AAPL");
  • Example 3
const myYenTrades = await myAccount.getTrades("USDJPY");
  • Example 4
const myGoldTrades = await myAccount.getTrades("XAUUSD");