Merge origin/spark_crypto.ccapi.fractional_qty_md
This commit is contained in:
1 parent
ef9b3b0544
commit
df510f0e3b
34 files changed
+1810
-78
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#include "CCAPIOrderCallbackMsgs.h"
|
||||
#include "lib/utils/bts_assert.h"
|
||||
|
||||
namespace bts::orderman {
|
||||
|
||||
const std::string &getm(const NVMap &map, char const *key_name) {
|
||||
auto it = map.find(key_name);
|
||||
bts_assert_msg(
|
||||
it != map.end(), "Could not find key_name" + std::string(key_name));
|
||||
return it->second;
|
||||
}
|
||||
|
||||
bts::api::orderman::OrderStatus convert_ccapi_status(
|
||||
const std::string &status) {
|
||||
// TODO, find the other status'es
|
||||
if (status == "open")
|
||||
return bts::api::orderman::OrderStatus::ORDER_STATUS_WORKING;
|
||||
return bts::api::orderman::OrderStatus::ORDER_STATUS_COMPLETED;
|
||||
}
|
||||
|
||||
} // namespace bts::orderman
|
||||
Reference in new issue
Block a user