const earnings = await flux.getTradeEarnings(0, // marketId"alice" // accountId);
The id of a specific market
The accountId the earnings amount needs to be calculated for. Will default to the signed in account.
Returns a promise that to an objcet that maps outcomes to potential earnings, denominated in