Documentation
¶
Index ¶
- type Account
- func (account *Account) Balance() (data Balance, err error)
- func (account *Account) Buy(stock string, price float64, amount int64) (id int64, err error)
- func (account *Account) Cancel(id int64) (err error)
- func (account *Account) Login() (err error)
- func (account *Account) Pending() (data []Order, err error)
- func (account *Account) Position() (data []StockPosition, err error)
- func (account *Account) RefreshUid()
- func (account *Account) Sell(stock string, price float64, amount int64) (id int64, err error)
- type Balance
- type Data
- type Order
- type Result
- type StockPosition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Fee float64 `yaml:"fee"`
Uid string `yaml:"uid"`
Username string `yaml:"username"`
Account1 string `yaml:"account1"`
Account2 string `yaml:"account2"`
Password1 string `yaml:"password1"`
Password2 string `yaml:"password2"`
Password3 string `yaml:"password3"`
// contains filtered or unexported fields
}
func (*Account) Position ¶
func (account *Account) Position() (data []StockPosition, err error)
获取持仓
Click to show internal directories.
Click to hide internal directories.