Documentation ¶
Overview ¶
package args holds the argument logic for the requests the client will use to comunicate with Cryptomarket. Separate package between args and the request is prefered as its crearer for the user to use them if they are called args.AnArgument, instead of request.AnArgument.
Index ¶
- type Argument
- func Address(val string) Argument
- func Amount(val string) Argument
- func BankAccount(val string) Argument
- func CallbackUrl(val string) Argument
- func Currency(val string) Argument
- func Date(val string) Argument
- func End(val string) Argument
- func EndDate(val string) Argument
- func ErrorUrl(val string) Argument
- func ExternalId(val string) Argument
- func Id(val string) Argument
- func Language(val string) Argument
- func Limit(val int) Argument
- func Market(val string) Argument
- func Memo(val string) Argument
- func Page(val int) Argument
- func PaymentReceiver(val string) Argument
- func Price(val string) Argument
- func RefundEmail(val string) Argument
- func Start(val string) Argument
- func StartDate(val string) Argument
- func SuccessUrl(val string) Argument
- func TimeFrame(val string) Argument
- func Timeframe(val string) Argument
- func ToReceive(val float64) Argument
- func ToReceiveCurrency(val string) Argument
- func Token(val string) Argument
- func TrackingCode(val string) Argument
- func Type(val string) Argument
- func Voucher(val string) Argument
- func Wallet(val string) Argument
- type DateError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
An Argument is a function that servers the porpouse of arguments for a requests. Works by modifying the given request, creating the corresponding data there.
func Amount ¶
Amount is an argument of a request. Represents numbers as strings.
Number format: without thousand separator, and . (a dot) as decimal point.
func Date ¶
Date is an argument of a request.
Needed in deposit requests for México.
Date format: dd/mm/yyyy.
func Limit ¶
Limit is an argument of a request. It accepts an integer greater or equal to 20 and lesser or equal to 100.
Asumed to be 20 by the server if the argument is not given.
func Market ¶
Market is an argument of a request.
Accepts a par of currencies. e.g. "ETHCLP" or "BTCARS".
func Page ¶
Page is an argument of a request.
Accepts an integer greater or equal to 0, asumed to be 0 by the server if not given.
func PaymentReceiver ¶
PaymentReceiver is an argument of a request.
func TimeFrame ¶
TimeFrame is an argument of a request. Its the lapse between two candles. Is an Alias of Timeframe
Accepts: 1, 5, 15, 60, 240, 1440 or 10080 as strings.
func Timeframe ¶
Timeframe is an argument of a request. Its the lapse between two candles.
Accepts: 1, 5, 15, 60, 240, 1440 or 10080 as strings.
func ToReceiveCurrency ¶
ToReceiveCurrency is an argument of a request.
func TrackingCode ¶
TrackingCode is an argument of a request.
Its needed in deposit requests for México.