Private
Optional
approvePrivate
modelPrivate
Optional
transactionReturns the approve transaction if it exists.
The approve transaction.
Returns the status of the Trade.
The status.
Returns the Trade transaction.
The Trade transaction.
Private
resetWaits until the Trade is completed or failed by polling the Network at the given interval. Raises an error if the Trade takes longer than the given timeout.
The options to configure the wait function.
The interval at which to poll the Network, in seconds
The maximum amount of time to wait for the Trade to complete, in seconds
The completed Trade object.
If the Trade takes longer than the given timeout.
If the request fails.
A representation of a Trade, which trades an amount of an Asset to another Asset on a Network. The fee is assumed to be paid in the native Asset of the Network.