TypeScript
Shorthand returns

by Benny Neugebauer

const response: MyTrade[] = await this.shieldedRequest<MyTrade[]>(() =>
  this.client.myTrades({
    symbol: pair.asString(),
    limit: 500,
  })
)

const response: MyTrade[] = await this.shieldedRequest<MyTrade[]>(() => {
    return this.client.myTrades({
      symbol: pair.asString(),
      limit: 500,
    })
  }
)