-
Notifications
You must be signed in to change notification settings - Fork 12
/
derivatives.h
54 lines (50 loc) · 1.98 KB
/
derivatives.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
52
53
54
#include "web.h"
namespace gecko {
// Purpose: class interface to all CoinGecko 'derivatives' functions found below
// Refer: https://www.coingecko.com/api/documentations/v3#/derivatives_(beta)
// Status: beta, likely unstable - untested
class derivativesFunctions : private web {
public:
// Action: fetches all derivative tickers
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// listDerivativeTickers()
// listDerivativeTickers("all")
// Notes: none
DllExport gecko::web::response listDerivativeTickers(
OPTIONAL std::string include_tickers = "unexpired"
);
// Action: fetches all derivative market exchanges
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getDerivativeMarketExchanges()
// getDerivativeMarketExchanges("trade_volume_24h_btc_asc")
// getDerivativeMarketExchanges("trade_volume_24h_btc_asc", 20, 1)
// Notes: none
DllExport gecko::web::response getDerivativeMarketExchanges(
OPTIONAL std::string order = "name_desc",
OPTIONAL unsigned short per_page = 100,
OPTIONAL unsigned short page = 1
);
// Action: fetches derivative exchange data
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getDerivativeExchangeData("bitmex")
// getDerivativeExchangeData("bitmex", "all")
// Notes: none
DllExport gecko::web::response getDerivativeExchangesData(
REQUIRED std::string id,
OPTIONAL std::string include_tickers = "unexpired"
);
// Action: fetches all derivative exchanges name and identifier
// Returns: gecko::web::response
// Refer: https://www.coingecko.com/api/documentations/v3
// Example(s):
// getDerivativeExchangesNameAndID()
// Notes: none
DllExport gecko::web::response getDerivativeExchangesNameAndID();
};
}