# Functions
GetBtcDirectSupportedRegions reutrn a string slice of the regions where BTC direct services are available.
GetExchangeDeals returns the exchange deals available for the specified account, region and action.
GetMoonpaySupportedRegions query moonpay API and returns a map of regions where buy is allowed.
GetPocketSupportedRegions query pocket API and returns a map of available regions.
IsBtcDirectSupported is true if coin.Code and region are supported by BtcDirect.
IsMoonpaySupported reports whether moonpay.com supports onramp.
IsPocketSupported is true if coin.Code is supported by Pocket.
ListExchangesByRegion populates an array of `ExchangeRegion` objects representing the availability of the various exchanges in each of them, for the provided account.
MoonpayDeals returns the purchase conditions (fee and payment methods) offered by Moonpay.
MoonpayInfo returns info for the frontend to initiate an onramp flow.
ParseAction parses an action string and returns an ExchangeAction.
PocketDeals returns the purchase conditions (fee and payment methods) offered by Pocket.
PocketURL returns the url needed to incorporate the widget in the frontend, verifying if the `devservers` argument is enabled.
PocketWidgetVerifyAddress allows the user to verify an address for the Pocket Iframe workflow.
# Constants
BankTransferPayment is a payment with bank transfer.
BuyAction identifies a buy exchange action.
CardPayment is a payment with credit/debit card.
MoonpayName is the name of the exchange, it is unique among all the supported exchanges.
PocketName is the name of the exchange, it is unique among all the supported exchanges.
SellAction identifies a sell exchange action.
# Variables
ErrCoinNotSupported is used when the exchange doesn't support a given coin type.
ErrRegionNotSupported is used when the exchange doesn't operate in a given region.
# Structs
BuyMoonpayInfo contains a starting point for initiating an onramp flow.
BuyMoonpayParams specifies parameters to iniate a cryptocurrency purchase flow.
BuyMoonpayRegion represents informations collected by Moonpay supported countries REST call.
ExchangeDeal represents a specific purchase option of an exchange.
ExchangeDealsList list the name of a specific exchange and the list of available deals offered by that exchange.
ExchangeRegion contains the ISO 3166-1 alpha-2 code of a specific region and a boolean for each exchange, indicating if that exchange is enabled for the region.
ExchangeRegionList contains a list of ExchangeRegion objects.
PocketRegion represents informations collected by Pocket supported countries REST call.
# Type aliases
ExchangeAction identifies buy or sell actions.
ExchangeError is an error code for exchange related issues.
PaymentMethod type is used for payment options in exchange deals.