-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use glaze for withdrawal fees crawler
- Loading branch information
Showing
14 changed files
with
211 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <unordered_map> | ||
|
||
#include "cct_string.hpp" | ||
#include "cct_vector.hpp" | ||
#include "currencycode.hpp" | ||
#include "monetaryamount.hpp" | ||
|
||
namespace cct::schema { | ||
|
||
struct WithdrawInfoFileItemAsset { | ||
MonetaryAmount min; // only amount | ||
MonetaryAmount fee; // only amount | ||
}; | ||
|
||
struct WithdrawInfoFileItem { | ||
int64_t timeepoch; | ||
std::unordered_map<CurrencyCode, WithdrawInfoFileItemAsset> assets; | ||
}; | ||
|
||
using WithdrawInfoFile = std::unordered_map<string, WithdrawInfoFileItem>; | ||
|
||
struct WithdrawFeesCrawlerExchangeFeesCoinSource1 { | ||
string symbol; | ||
|
||
auto operator<=>(const WithdrawFeesCrawlerExchangeFeesCoinSource1&) const = default; | ||
}; | ||
|
||
struct WithdrawFeesCrawlerExchangeFeesSource1 { | ||
double amount; | ||
double min; | ||
WithdrawFeesCrawlerExchangeFeesCoinSource1 coin; | ||
|
||
auto operator<=>(const WithdrawFeesCrawlerExchangeFeesSource1&) const = default; | ||
}; | ||
|
||
struct WithdrawFeesCrawlerExchangeSource1 { | ||
string name; | ||
vector<WithdrawFeesCrawlerExchangeFeesSource1> fees; | ||
}; | ||
|
||
struct WithdrawFeesCrawlerSource1 { | ||
WithdrawFeesCrawlerExchangeSource1 exchange; | ||
}; | ||
|
||
} // namespace cct::schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.