Documentation ¶
Index ¶
- func DeleteAlgo(id int, owner string) error
- func DeleteUser(user string) error
- func EraseTransaction() error
- func GetUniqueAlgoTesting() ([]int, error)
- func GetUniqueAlgoTransaction() ([]int, error)
- func InitDB(filename string) error
- func InsertAccount(account Account) error
- func InsertAlgo(algor Algor) error
- func InsertTestingBuy(tb TestingBuy) error
- func InsertTestingCalcTable() error
- func InsertTestingSell(ts TestingSell) error
- func InsertTransactionBuy(tb TransactionBuy) error
- func InsertTransactionSell(ts TransactionSell) error
- func UpdateAlgoState(state string, id int, owner string) error
- func UpdateOrderStatus(status string, id int) error
- type Account
- type AlgoStats
- type AlgoStatsLive
- type AlgoTesting
- type AlgoTransaction
- type Algor
- type TestingBuy
- type TestingSell
- type TransactionBuy
- type TransactionSell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAlgo ¶
func DeleteUser ¶
func EraseTransaction ¶
func EraseTransaction() error
func GetUniqueAlgoTesting ¶
func InsertAccount ¶
func InsertAlgo ¶
func InsertTestingBuy ¶
func InsertTestingBuy(tb TestingBuy) error
func InsertTestingCalcTable ¶
func InsertTestingCalcTable() error
func InsertTestingSell ¶
func InsertTestingSell(ts TestingSell) error
func InsertTransactionBuy ¶
func InsertTransactionBuy(tb TransactionBuy) error
func InsertTransactionSell ¶
func InsertTransactionSell(ts TransactionSell) error
func UpdateOrderStatus ¶
Types ¶
type Account ¶
type Account struct { Name string ApiKey string SecretKey string ApiKey_test string SecretKey_test string }
func GetAccountByName ¶
func GetAccounts ¶
type AlgoStats ¶
type AlgoStats struct { Botid int TotalReturn float64 AvgReturnPerTrade float64 AvgReturnPerMonth float64 SucessRate float64 MaxDrawdown float64 AvgTradeTime int }
func GetAllAlgoStats ¶
func GetAllAlgoStatsLive ¶
func GetStatsById ¶
func GetStatsById2 ¶
func GetStatsByIdLive ¶
type AlgoStatsLive ¶
type AlgoTesting ¶
type AlgoTesting struct { Id int Botid int Ticket string Buyvalue float64 Buytime int64 Sellvalue float64 Selltime int64 }
func GetTestingBuy ¶
func GetTestingBuy(botid int) ([]AlgoTesting, error)
func GetTestingSell ¶
func GetTestingSell(botid int) ([]AlgoTesting, error)
type AlgoTransaction ¶
type AlgoTransaction struct { Id int Botid int Orderid int Ticket string Orderstatus string Buyvalue float64 Buyquantity float64 Buytime int Sellvalue float64 Selltime int }
func GetTransactionBuy ¶
func GetTransactionBuy(botid int) ([]AlgoTransaction, error)
func GetTransactionPending ¶
func GetTransactionPending(botid int) ([]AlgoTransaction, error)
func GetTransactionSell ¶
func GetTransactionSell(botid int) ([]AlgoTransaction, error)
type Algor ¶
type Algor struct { Id int Owner string Name string Created int64 Buycode string State string BaseAsset string QuoteAsset string }
func GetAllAlgos ¶
type TestingBuy ¶
type TestingSell ¶
type TransactionBuy ¶
Click to show internal directories.
Click to hide internal directories.