-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBybit.hpp
More file actions
75 lines (66 loc) · 1.45 KB
/
Copy pathBybit.hpp
File metadata and controls
75 lines (66 loc) · 1.45 KB
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
69
70
71
72
73
74
75
#ifndef BYBIT_H
#define BYBIT_H
#include "Utils/Utils.hpp"
#include "Utils/Logger.hpp"
#include <curl/curl.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include "json.hpp"
f32 getBalance(const std::string& coin, const std::string& API_KEY, const std::string& API_SECRET);
const std::list<std::string> getCoinList(const std::string& API_KEY, const std::string& API_SECRET);
struct BybitPaymentMethod {
u64 index;
std::string text;
};
const std::list<BybitPaymentMethod> supportedPaymentMethods = {
{
.index = 75,
.text = "Tinkoff"
},
{
.index = 377,
.text = "Sberbank"
},
{
.index = 64,
.text = "Raiffeisenbank"
},
{
.index = 378,
.text = "Gazprombank"
},
{
.index = 379,
.text = "Alfa Bank"
},
{
.index = 382,
.text = "SBP"
},
{
.index = 381,
.text = "VTB Bank"
},
{
.index = 595,
.text = "OZON Bank"
},
{
.index = 614,
.text = "Sovkombank"
},
{
.index = 90,
.text = "Cash in Person"
}
};
struct BybitP2POffer {
f32 price;
std::string nickName;
u64 recentExecuteRate;
u64 recentOrderNum;
std::string remark;
std::string link;
};
std::array<BybitP2POffer, 10> getP2POffers(const std::string token, const std::string currency, const u64 amount, const std::list<u64>& paymentMethods);
#endif // BYBIT_H