Documentation ¶
Index ¶
- Constants
- type BitflyerApi
- func (b *BitflyerApi) ActiveOrders() ([]*models.Order, error)
- func (b *BitflyerApi) Address(c string) (string, error)
- func (b *BitflyerApi) Balances() (map[string]float64, error)
- func (b *BitflyerApi) CancelOrder(orderNumber string, productCode string) error
- func (b *BitflyerApi) CompleteBalances() (map[string]*models.Balance, error)
- func (b *BitflyerApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, ...) (string, error)
- func (b *BitflyerApi) PurchaseFeeRate() (float64, error)
- func (b *BitflyerApi) SellFeeRate() (float64, error)
- func (b *BitflyerApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error
- func (b *BitflyerApi) TransferFee() (map[string]float64, error)
- type BitflyerApiConfig
- type PoloniexApi
- func (p *PoloniexApi) ActiveOrders() ([]*models.Order, error)
- func (p *PoloniexApi) Address(c string) (string, error)
- func (p *PoloniexApi) Balances() (map[string]float64, error)
- func (p *PoloniexApi) CancelOrder(orderNumber string, _ string) error
- func (p *PoloniexApi) CompleteBalances() (map[string]*models.Balance, error)
- func (p *PoloniexApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, ...) (string, error)
- func (p *PoloniexApi) PurchaseFeeRate() (float64, error)
- func (p *PoloniexApi) SellFeeRate() (float64, error)
- func (p *PoloniexApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error
- func (p *PoloniexApi) TransferFee() (map[string]float64, error)
- type PoloniexApiConfig
Constants ¶
View Source
const (
BITFLYER_BASE_URL = "https://api.bitflyer.jp"
)
View Source
const (
POLONIEX_BASE_URL = "https://poloniex.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitflyerApi ¶
type BitflyerApi struct {
// contains filtered or unexported fields
}
func NewBitflyerApi ¶
func NewBitflyerApi(apikey string, apisecret string) (*BitflyerApi, error)
func NewBitflyerApiUsingConfigFunc ¶
func NewBitflyerApiUsingConfigFunc(f func(*BitflyerApiConfig)) (*BitflyerApi, error)
func (*BitflyerApi) ActiveOrders ¶
func (b *BitflyerApi) ActiveOrders() ([]*models.Order, error)
func (*BitflyerApi) CancelOrder ¶
func (b *BitflyerApi) CancelOrder(orderNumber string, productCode string) error
func (*BitflyerApi) CompleteBalances ¶
func (b *BitflyerApi) CompleteBalances() (map[string]*models.Balance, error)
func (*BitflyerApi) PurchaseFeeRate ¶
func (b *BitflyerApi) PurchaseFeeRate() (float64, error)
func (*BitflyerApi) SellFeeRate ¶
func (b *BitflyerApi) SellFeeRate() (float64, error)
func (*BitflyerApi) TransferFee ¶
func (b *BitflyerApi) TransferFee() (map[string]float64, error)
type BitflyerApiConfig ¶
type PoloniexApi ¶
type PoloniexApi struct {
// contains filtered or unexported fields
}
func NewPoloniexApi ¶
func NewPoloniexApi(apikey string, apisecret string) (*PoloniexApi, error)
func NewPoloniexApiUsingConfigFunc ¶
func NewPoloniexApiUsingConfigFunc(f func(*PoloniexApiConfig)) (*PoloniexApi, error)
func (*PoloniexApi) ActiveOrders ¶
func (p *PoloniexApi) ActiveOrders() ([]*models.Order, error)
func (*PoloniexApi) CancelOrder ¶
func (p *PoloniexApi) CancelOrder(orderNumber string, _ string) error
func (*PoloniexApi) CompleteBalances ¶
func (p *PoloniexApi) CompleteBalances() (map[string]*models.Balance, error)
func (*PoloniexApi) PurchaseFeeRate ¶
func (p *PoloniexApi) PurchaseFeeRate() (float64, error)
func (*PoloniexApi) SellFeeRate ¶
func (p *PoloniexApi) SellFeeRate() (float64, error)
func (*PoloniexApi) TransferFee ¶
func (p *PoloniexApi) TransferFee() (map[string]float64, error)
Click to show internal directories.
Click to hide internal directories.