56 lines
1.4 KiB
Go
56 lines
1.4 KiB
Go
package ccxt
|
|
|
|
type Binancecoinm struct {
|
|
*binancecoinm
|
|
Core *binancecoinm
|
|
}
|
|
|
|
func NewBinancecoinm(userConfig map[string]interface{}) Binancecoinm {
|
|
p := &binancecoinm{}
|
|
p.Init(userConfig)
|
|
return Binancecoinm{
|
|
binancecoinm: p,
|
|
Core: p,
|
|
}
|
|
}
|
|
|
|
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
|
|
|
|
func (this *Binancecoinm) TransferIn(code string, amount interface{}, options ...TransferInOptions) (TransferEntry, error) {
|
|
|
|
opts := TransferInOptionsStruct{}
|
|
|
|
for _, opt := range options {
|
|
opt(&opts)
|
|
}
|
|
|
|
var params interface{} = nil
|
|
if opts.Params != nil {
|
|
params = *opts.Params
|
|
}
|
|
res := <- this.Core.TransferIn(code, amount, params)
|
|
if IsError(res) {
|
|
return TransferEntry{}, CreateReturnError(res)
|
|
}
|
|
return NewTransferEntry(res), nil
|
|
}
|
|
func (this *Binancecoinm) TransferOut(code string, amount interface{}, options ...TransferOutOptions) (TransferEntry, error) {
|
|
|
|
opts := TransferOutOptionsStruct{}
|
|
|
|
for _, opt := range options {
|
|
opt(&opts)
|
|
}
|
|
|
|
var params interface{} = nil
|
|
if opts.Params != nil {
|
|
params = *opts.Params
|
|
}
|
|
res := <- this.Core.TransferOut(code, amount, params)
|
|
if IsError(res) {
|
|
return TransferEntry{}, CreateReturnError(res)
|
|
}
|
|
return NewTransferEntry(res), nil
|
|
} |