Skip to content

Commit 767d8f3

Browse files
MapleMaple
authored andcommitted
jsonutils validates and parses with SAX and rjson
1 parent e2cf3d7 commit 767d8f3

File tree

5 files changed

+386
-177
lines changed

5 files changed

+386
-177
lines changed

doc/definitions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"flatJsonSchema": {
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description": "Flat JSON string array scheme used in jsonutils::jsonStrToUset",
5+
"type": "array",
6+
"items": {
7+
"type": "string"
8+
},
9+
"uniqueItems": true
10+
}
11+
}

doc/withdraw.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
///////////////////////////////////////////////////////////////////////////////
32
//
43
// CONFIGURATION FILE FOR Withdraw() method
54
//
65
// Set auto-withdraw processing on https://www.bitfinex.com/withdraw/greenline
76
// if you don't wish to receive confirmation emails.
87
//
98
///////////////////////////////////////////////////////////////////////////////
10-
///////////////////////////////////////////////////////////////////////////////
119

1210
// string, REQUIRED for wire and crypto
1311
// Can be one of the following ["bitcoin", "litecoin", "ethereum", "ethereumc", "mastercoin", "zcash", "monero", "wire"].

example.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
//
88
//////////////////////////////////////////////////////////////////////////////
99

10-
10+
// std
1111
#include <fstream>
1212
#include <iostream>
13+
14+
// BitfinexAPI
1315
#include "BitfinexAPI.hpp"
1416

1517

18+
// namespaces
1619
using std::cout;
17-
using std::ifstream;
1820
using std::endl;
21+
using std::ifstream;
1922
using std::string;
2023

2124
using BfxAPI::BitfinexAPI;
@@ -43,7 +46,7 @@ int main(int argc, char *argv[])
4346
// errCode = bfxAPI.getOrderBook(response, "btcusd", 50, 50, 1);
4447
// errCode = bfxAPI.getTrades(response, "btcusd", 0L, 50);
4548
// errCode = bfxAPI.getLends(response, "USD", 0L, 50);
46-
// errCode = bfxAPI.getSymbols(response);
49+
// errCode = bfxAPI.getSymbols(response);
4750
// errCode = bfxAPI.getSymbolDetails(response);
4851

4952
cout << "Response: " << response << endl;

0 commit comments

Comments
 (0)