-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
60 lines (54 loc) · 2.1 KB
/
const.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
// Copyright 2021 Juan Ismael Vasquez <ismael.juan@gmail.com>.
// All rights reserved. Use of this source code is governed by
// a MIT style license that can be found in the LICENSE file.
package cexio
// CexURL CEX.IO url
const (
CexURL string = "https://cex.io/api/"
postContentType string = "application/json"
)
// Public Resources
// GET Methods
const (
MethodCurrencyLimits string = "currency_limits"
MethodTicker string = "ticker"
MethodTickers string = "tickers"
MethodLastPrice string = "last_price"
MethodLastPrices string = "last_prices"
MethodHistoricalChart string = "ohlcv/hd"
MethodOrderBook string = "order_book"
MethodTradeHistory string = "trade_history"
)
// Public Resources
// POST Methods
const (
MethodConvert string = "convert"
MethodChart string = "price_stats"
)
// Private Resources
const (
MethodBalance string = "balance"
MethodOpenOrders string = "open_orders"
MethodActiveOrdersStatus string = "active_orders_status"
MethodArchivedOrders string = "archived_orders"
MethodCancelOrder string = "cancel_order"
MethodCancelOrders string = "cancel_orders"
MethodPlaceOrder string = "place_order"
MethodGetOrder string = "get_order"
MethodGetOrderTransactions string = "get_order_tx"
MethodGetAddress string = "get_address"
MethodGetMyFee string = "get_myfee"
MethodCancelReplaceOrder string = "cancel_replace_order"
MethodOpenPosition string = "open_position"
MethodOpenPositions string = "open_positions"
MethodGetPosition string = "get_position"
MethodClosePosition string = "close_position"
MethodArchivedPositions string = "archived_positions"
MethodGetMarginalFee string = "get_marginal_fee"
)
const (
errorHTTPComunication string = "Error with HTTP comunication to CEX.IO: %s\n"
errorReadingResponse string = "Error reading CEX.IO response: %s\n"
errorDecodingResponse string = "Error decoding CEX.IO response: %s\n"
errorInvalidAPIKeys string = "Error the CEX.IO Keys are not defined\n"
)