Order constructor
Order({
- required int accountId,
- required int subAccountId,
- required int slotId,
- required int nonce,
- required int baseTokenId,
- required int quoteTokenId,
- required String amount,
- required String price,
- required bool isSell,
- required int makerFeeRate,
- required int takerFeeRate,
- required bool hasSubsidy,
- dynamic hint,
Implementation
factory Order(
{required int accountId,
required int subAccountId,
required int slotId,
required int nonce,
required int baseTokenId,
required int quoteTokenId,
required String amount,
required String price,
required bool isSell,
required int makerFeeRate,
required int takerFeeRate,
required bool hasSubsidy,
dynamic hint}) =>
RustLib.instance.api.orderNew(
accountId: accountId,
subAccountId: subAccountId,
slotId: slotId,
nonce: nonce,
baseTokenId: baseTokenId,
quoteTokenId: quoteTokenId,
amount: amount,
price: price,
isSell: isSell,
makerFeeRate: makerFeeRate,
takerFeeRate: takerFeeRate,
hasSubsidy: hasSubsidy,
hint: hint);