ContractMatching constructor

ContractMatching({
  1. required int accountId,
  2. required int subAccountId,
  3. required Contract taker,
  4. required List<Contract> maker,
  5. required String fee,
  6. required int feeToken,
  7. required List<ContractPrice> contractPrices,
  8. required List<SpotPriceInfo> marginPrices,
  9. dynamic hint,
})

Implementation

factory ContractMatching(
        {required int accountId,
        required int subAccountId,
        required Contract taker,
        required List<Contract> maker,
        required String fee,
        required int feeToken,
        required List<ContractPrice> contractPrices,
        required List<SpotPriceInfo> marginPrices,
        dynamic hint}) =>
    RustLib.instance.api.contractMatchingNew(
        accountId: accountId,
        subAccountId: subAccountId,
        taker: taker,
        maker: maker,
        fee: fee,
        feeToken: feeToken,
        contractPrices: contractPrices,
        marginPrices: marginPrices,
        hint: hint);