-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbtce.go
68 lines (52 loc) · 2.06 KB
/
btce.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package btce;
type Btce struct {
Public *btcePublic
Private *btcePrivate
}
func New(public string, secret string) *Btce {
pub := NewPublic();
priv := NewPrivate(public, secret);
return &Btce{pub, priv};
}
func (this *Btce) GetInfo() (*PrivateInfo, error) {
return this.Private.GetInfo();
}
func (this *Btce) TransHistory(From int, Count int, FromID int, EndID int, Order string, Since string, End string) (*TransHistory, error) {
return this.Private.TransHistory(From, Count, FromID, EndID, Order, Since, End);
}
func (this *Btce) TradeHistory(From int, Count int, FromID int, EndID int, Order string, Since string, End string, Pair string) (*TradeHistory, error) {
return this.Private.TradeHistory(From, Count, FromID, EndID, Order, Since, End, Pair);
}
func (this *Btce) OrderedTradeHistory(From int, Count int, FromID int, EndID int, Order string, Since string, End string, Pair string) (*TradeHistory, error) {
return this.Private.OrderedTradeHistory(From, Count, FromID, EndID, Order, Since, End, Pair);
}
func (this *Btce) LastTrade(Pair string) (*TradeHistoryTrade, error) {
return this.Private.LastTrade(Pair);
}
func (this *Btce) ActiveOrders(Pair string) (*ActiveOrders, error) {
return this.Private.ActiveOrders(Pair);
}
func (this *Btce) OrderedActiveOrders(Pair string) (*ActiveOrders, error) {
return this.Private.OrderedActiveOrders(Pair);
}
func (this *Btce) Trade(Pair string, Type string, Rate float64, Amount float64) (*Trade, error) {
return this.Private.Trade(Pair, Type, Rate, Amount);
}
func (this *Btce) CancelOrder(OrderID int) (*CancelOrder, error) {
return this.Private.CancelOrder(OrderID);
}
func (this *Btce) Balances(Pair string) ([]float64, error) {
return this.Private.Balances(Pair);
}
func (this *Btce) Info() (*PublicInfo, error) {
return this.Public.Info();
}
func (this *Btce) Ticker(Pair string) (*Ticker, error) {
return this.Public.Ticker(Pair);
}
func (this *Btce) Trades(Pair string) (*Trades, error) {
return this.Public.Trades(Pair);
}
func (this *Btce) Depth(Pair string) (*Depth, error) {
return this.Public.Depth(Pair);
}