# Packages
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrMarketInvalidBaseAsset is thrown when non valid base asset is given.
ErrMarketInvalidBaseAssetPrecision is thrown when non valid quote asset precision is given.
ErrMarketInvalidBasePrice is thrown when the amount for Base price is an invalid satoshis value.
ErrInvalidFixedFee ...
ErrMarketFeeTooHigh ...
ErrMarketInvalidQuoteAsset is thrown when non valid quote asset is given.
ErrMarketInvalidQuoteAssetPrecision is thrown when non valid quote asset precision is given.
ErrMarketInvalidQuotePrice is thrown when the amount for Quote price is an invalid satoshis value.
ErrMarketIsClosed is thrown when a market requires being tradable for a change.
ErrMarketMustBeClosed is thrown when a market requires being NOT tradable for a change.
ErrMarketNotPriced is thrown when the price is still 0 (ie.
ErrMarketPreviewAmountTooBig is returned when a preview fails because the provided amount makes the previewed amount to be too big (greater than the overall balance).
ErrMarketPreviewAmountTooLow is returned when a preview fails because the provided amount makes the previewed amount to be too low (lower than the optional fixed fee).
ErrMarketUnknownStrategy is thrown when an invalid strategy is given at market creation.
ErrTradeExpired ...
ErrTradeExpiryTimeNotReached ...
ErrTradeInvalidExpiryTime ...
ErrTradeMustBeAccepted ...
ErrTradeMustBeCompleted ...
ErrTradeMustBeProposal ...
ErrTradeNullExpiryTime ...
ErrTradeUnknownType ...
SwapParserManager ...
# Structs
Deposit holds info about txs with funds sent to some wallet account.
Market defines the Market entity data structure for holding an asset pair state.
No description provided by the author
MarketPrice represents base and quote market price.
PreviewInfo contains info about a price preview based on the market's current strategy.
Swap is the data structure that represents any of the above swaps.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Trade is the data structure representing a trade entity.
Status represents the different statuses that a trade can assume.
No description provided by the author
Withdrawal holds info about txs with funds sent from a wallet account.
# Interfaces
DepositRepository is the abstraction for any kind of database intended to persist Deposits.
MarketRepository is the abstraction for any kind of database intended to persist Markets.
No description provided by the author
SwapParser defines the required methods to override the default swap message parser, which is grpc-proto.
TradeRepository is the abstraction for any kind of database intended to persist Trades.
WithdrawalRepository is the abstraction for any kind of database intended to persist Withdrawals.
# Type aliases
No description provided by the author