-
Notifications
You must be signed in to change notification settings - Fork 12
/
indexes.h
51 lines (47 loc) · 1.83 KB
/
indexes.h
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
#include "web.h"
namespace gecko {
// Purpose: class interface to all CoinGecko 'indexes' functions found below
// Refer: https://www.coingecko.com/api/documentations/v3#/indexes_(beta)
// Status: beta, likely unstable - untested: confusing documentation
class indexesFunctions : private web {
public:
// Action: fetches all market indexes
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// listIndexes()
// listIndexes(20, 1)
// Notes: none
DllExport gecko::web::response listIndexes(
OPTIONAL unsigned short per_page = 100,
OPTIONAL unsigned short page = 1
);
// Action: fetches market index by market id and index id
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getMarketIndexByMarketIdAndIndexId(market_id: get at /exchanges/list, id: get at /indexes/list)
// Notes: none
DllExport gecko::web::response getMarketIndexByMarketIdAndIndexId(
REQUIRED std::string market_id,
REQUIRED std::string id
);
// Action: fetches market indexes id and name
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// listIndexInfo()
// Notes: none
DllExport gecko::web::response listIndexInfo();
// Action: fetches market index by market id and market index id
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getMarketIndexByMarketIdAndMarketIndexId(market_id: refer /exchanges/list, id: refer /indexes/list)
// Notes: none
DllExport gecko::web::response getMarketIndexByMarketIdAndMarketIndexId(
REQUIRED std::string market_id,
REQUIRED std::string id
);
};
}