Type/to search

C++ API调用例子

Study
6
Follow
942
Followers

支持C++ 11, 兼容各种平台(Windows/Linux/Mac). 云端编译.

Source
C++
void main() {
    // json: https://github.com/nlohmann/json
    // 所有的对像返回用Valid来判断是否有效
    LogProfitReset();
    LogReset();
    Log(_N(9.12345, 2));
    Log("use _C", _C(exchange.GetTicker), _C(exchange.GetAccount));

    // 测试异步并发
    auto routineTicker = exchange.Go("GetTicker");
    auto routineDepth = exchange.Go("GetDepth");
    Ticker asyncTicker;
Related strategies
Comment
All comments (3)

    大哥有群吗?

    8 years ago

    C++这样写和js也没多大区别,哈哈//

    8 years ago

    Z大威武!

    9 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)