5 #include "krakenconfig.h" 20 void readFile(
const std::string& _fileName);
22 void read(Poco::Dynamic::Var val);
26 typedef double ResultMap;
28 typedef std::map<std::string, ResultMap> Result;
46 void readFile(
const std::string& _fileName);
48 void read(Poco::Dynamic::Var val);
54 void SetAclass(std::string val)
60 return (aclass !=
"Empty");
65 void SetAltname(std::string val)
71 return (altname !=
"Empty");
76 void SetDecimals(Poco::Int32 val)
81 bool isSetDecimals() {
82 return (decimals != std::numeric_limits<Poco::Int32>::max());
87 void SetDisplay_decimals(Poco::Int32 val)
89 display_decimals = val;
92 bool isSetDisplay_decimals() {
93 return (display_decimals != std::numeric_limits<Poco::Int32>::max());
96 Poco::Int32 display_decimals;
101 , decimals(std::numeric_limits<Poco::Int32>::max())
102 , display_decimals(std::numeric_limits<Poco::Int32>::max())
108 typedef std::map<std::string, ResultMap> Result;
126 void readFile(
const std::string& _fileName);
128 void read(Poco::Dynamic::Var val);
133 void SetAclass(std::string val)
139 return (aclass !=
"Empty");
145 void SetAsset(std::string val)
151 return (asset !=
"Empty");
157 void SetInfo(std::string val)
163 return (info !=
"Empty");
187 void readFile(
const std::string& _fileName);
189 void read(Poco::Dynamic::Var val);
196 void SetAclass_base(std::string val)
201 bool isSetAclass_base() {
202 return (aclass_base !=
"Empty");
205 std::string aclass_base;
208 void SetAclass_quote(std::string val)
213 bool isSetAclass_quote() {
214 return (aclass_quote !=
"Empty");
217 std::string aclass_quote;
220 void SetAltname(std::string val)
225 bool isSetAltname() {
226 return (altname !=
"Empty");
232 void SetBase(std::string val)
238 return (base !=
"Empty");
244 void SetFee_volume_currency(std::string val)
246 fee_volume_currency = val;
249 bool isSetFee_volume_currency() {
250 return (fee_volume_currency !=
"Empty");
253 std::string fee_volume_currency;
255 typedef double FeesArrayArray;
257 typedef std::vector<FeesArrayArray> FeesArray;
258 typedef std::vector<FeesArray> Fees;
260 typedef double Fees_makerArrayArray;
262 typedef std::vector<Fees_makerArrayArray> Fees_makerArray;
263 typedef std::vector<Fees_makerArray> Fees_maker;
264 Fees_maker fees_maker;
265 typedef double Leverage_buyArray;
267 typedef std::vector<Leverage_buyArray> Leverage_buy;
268 Leverage_buy leverage_buy;
269 typedef double Leverage_sellArray;
271 typedef std::vector<Leverage_sellArray> Leverage_sell;
272 Leverage_sell leverage_sell;
274 void SetLot(std::string val)
280 return (lot !=
"Empty");
286 void SetLot_decimals(Poco::Int32 val)
291 bool isSetLot_decimals() {
292 return (lot_decimals != std::numeric_limits<Poco::Int32>::max());
295 Poco::Int32 lot_decimals;
298 void SetLot_multiplier(Poco::Int32 val)
300 lot_multiplier = val;
303 bool isSetLot_multiplier() {
304 return (lot_multiplier != std::numeric_limits<Poco::Int32>::max());
307 Poco::Int32 lot_multiplier;
310 void SetMargin_call(Poco::Int32 val)
315 bool isSetMargin_call() {
316 return (margin_call != std::numeric_limits<Poco::Int32>::max());
319 Poco::Int32 margin_call;
322 void SetMargin_stop(Poco::Int32 val)
327 bool isSetMargin_stop() {
328 return (margin_stop != std::numeric_limits<Poco::Int32>::max());
331 Poco::Int32 margin_stop;
334 void SetPair_decimals(Poco::Int32 val)
339 bool isSetPair_decimals() {
340 return (pair_decimals != std::numeric_limits<Poco::Int32>::max());
343 Poco::Int32 pair_decimals;
346 void SetQuote(std::string val)
352 return (quote !=
"Empty");
358 : aclass_base(
"Empty")
359 , aclass_quote(
"Empty")
362 , fee_volume_currency(
"Empty")
364 , lot_decimals(std::numeric_limits<Poco::Int32>::max())
365 , lot_multiplier(std::numeric_limits<Poco::Int32>::max())
366 , margin_call(std::numeric_limits<Poco::Int32>::max())
367 , margin_stop(std::numeric_limits<Poco::Int32>::max())
368 , pair_decimals(std::numeric_limits<Poco::Int32>::max())
375 typedef std::map<std::string, ResultMap> Result;
393 void readFile(
const std::string& _fileName);
395 void read(Poco::Dynamic::Var val);
400 void SetInfo(std::string val)
406 return (info !=
"Empty");
412 void SetPair(std::string val)
418 return (pair !=
"Empty");
441 void readFile(
const std::string& _fileName);
443 void read(Poco::Dynamic::Var val);
447 typedef std::string ErrorArray;
449 typedef std::vector<ErrorArray> Error;
467 void readFile(
const std::string& _fileName);
469 void read(Poco::Dynamic::Var val);
473 typedef double ResultMapArrayArray;
475 typedef std::vector<ResultMapArrayArray> ResultMapArray;
476 typedef std::vector<ResultMapArray> ResultMap;
477 typedef std::map<std::string, ResultMap> Result;
480 void SetLast(Poco::Int32 val)
486 return (last != std::numeric_limits<Poco::Int32>::max());
507 void readFile(
const std::string& _fileName);
509 void read(Poco::Dynamic::Var val);
514 void SetInterval (
double val)
519 bool isSetInterval () {
520 return (interval != std::numeric_limits<double>::max());
526 void SetPair(std::string val)
532 return (pair !=
"Empty");
538 void SetSince(
double val)
544 return (since != std::numeric_limits<double>::max());
550 : interval (std::numeric_limits<double>::max())
552 , since(std::numeric_limits<double>::max())
568 void readFile(
const std::string& _fileName);
570 void read(Poco::Dynamic::Var val);
576 typedef double AsksArrayArray;
578 typedef std::vector<AsksArrayArray> AsksArray;
579 typedef std::vector<AsksArray> Asks;
581 typedef double BidsArrayArray;
583 typedef std::vector<BidsArrayArray> BidsArray;
584 typedef std::vector<BidsArray> Bids;
592 typedef std::map<std::string, ResultMap> Result;
610 void readFile(
const std::string& _fileName);
612 void read(Poco::Dynamic::Var val);
617 void SetCount(Poco::Int32 val)
623 return (count != std::numeric_limits<Poco::Int32>::max());
629 void SetPair(std::string val)
635 return (pair !=
"Empty");
641 : count(std::numeric_limits<Poco::Int32>::max())
658 void readFile(
const std::string& _fileName);
660 void read(Poco::Dynamic::Var val);
664 typedef double ResultMapArrayArray;
666 typedef std::vector<ResultMapArrayArray> ResultMapArray;
667 typedef std::vector<ResultMapArray> ResultMap;
668 typedef std::map<std::string, ResultMap> Result;
671 void SetLast(Poco::Int32 val)
677 return (last != std::numeric_limits<Poco::Int32>::max());
698 void readFile(
const std::string& _fileName);
700 void read(Poco::Dynamic::Var val);
704 void SetPair(std::string val)
710 return (pair !=
"Empty");
716 void SetSince(Poco::Int32 val)
722 return (since != std::numeric_limits<Poco::Int32>::max());
729 , since(std::numeric_limits<Poco::Int32>::max())
745 void readFile(
const std::string& _fileName);
747 void read(Poco::Dynamic::Var val);
751 typedef std::string ResultMapArrayArray;
753 typedef std::vector<ResultMapArrayArray> ResultMapArray;
754 typedef std::vector<ResultMapArray> ResultMap;
755 typedef std::map<std::string, ResultMap> Result;
758 void SetLast(std::string val)
764 return (last !=
"Empty");
785 void readFile(
const std::string& _fileName);
787 void read(Poco::Dynamic::Var val);
792 void SetPair(std::string val)
798 return (pair !=
"Empty");
804 void SetSince(Poco::Int32 val)
810 return (since != std::numeric_limits<Poco::Int32>::max());
817 , since(std::numeric_limits<Poco::Int32>::max())
833 void readFile(
const std::string& _fileName);
835 void read(Poco::Dynamic::Var val);
841 void SetRfc1123(std::string val)
846 bool isSetRfc1123() {
847 return (rfc1123 !=
"Empty");
852 void SetUnixtime(Poco::Int32 val)
857 bool isSetUnixtime() {
858 return (unixtime != std::numeric_limits<Poco::Int32>::max());
861 Poco::Int32 unixtime;
865 , unixtime(std::numeric_limits<Poco::Int32>::max())
888 void readFile(
const std::string& _fileName);
890 void read(Poco::Dynamic::Var val);
899 void SetClose(std::string val)
905 return (close !=
"Empty");
911 void SetOrder(std::string val)
917 return (order !=
"Empty");
931 typedef std::string TxidArray;
933 typedef std::vector<TxidArray> Txid;
958 void readFile(
const std::string& _fileName);
960 void read(Poco::Dynamic::Var val);
968 void SetExpiretm(std::string val)
973 bool isSetExpiretm() {
974 return (expiretm !=
"Empty");
977 std::string expiretm;
981 void SetLeverage(Poco::Int32 val)
986 bool isSetLeverage() {
987 return (leverage != std::numeric_limits<Poco::Int32>::max());
990 Poco::Int32 leverage;
998 void SetOflags(std::string val)
1003 bool isSetOflags() {
1004 return (oflags !=
"Empty");
1022 void SetOrdertype(std::string val)
1027 bool isSetOrdertype() {
1028 return (ordertype !=
"Empty");
1031 std::string ordertype;
1034 void SetPair(std::string val)
1040 return (pair !=
"Empty");
1046 void SetPrice(std::string val)
1052 return (price !=
"Empty");
1059 void SetPrice2(std::string val)
1064 bool isSetPrice2() {
1065 return (price2 !=
"Empty");
1074 void SetStarttm(std::string val)
1079 bool isSetStarttm() {
1080 return (starttm !=
"Empty");
1083 std::string starttm;
1086 void SetType(std::string val)
1092 return (type !=
"Empty");
1098 void SetUserref(Poco::Int32 val)
1103 bool isSetUserref() {
1104 return (userref != std::numeric_limits<Poco::Int32>::max());
1107 Poco::Int32 userref;
1110 void SetValidate(
bool val)
1116 bool isSetValidate() {
1117 return (validateSet !=
false);
1124 void SetVolume(
double val)
1129 bool isSetVolume() {
1130 return (volume != std::numeric_limits<double>::max());
1137 , leverage(std::numeric_limits<Poco::Int32>::max())
1139 , ordertype(
"Empty")
1145 , userref(std::numeric_limits<Poco::Int32>::max())
1147 , validateSet(
false)
1148 , volume(std::numeric_limits<double>::max())
1164 void readFile(
const std::string& _fileName);
1166 void read(Poco::Dynamic::Var val);
1172 typedef double AArray;
1174 typedef std::vector<AArray> A;
1176 typedef double BArray;
1178 typedef std::vector<BArray> B;
1180 typedef double CArray;
1182 typedef std::vector<CArray> C;
1184 typedef double HArray;
1186 typedef std::vector<HArray> H;
1188 typedef double LArray;
1190 typedef std::vector<LArray> L;
1193 void SetO(
double val)
1199 return (o != std::numeric_limits<double>::max());
1204 typedef double PArray;
1206 typedef std::vector<PArray> P;
1208 typedef double TArray;
1210 typedef std::vector<TArray> T;
1212 typedef double VArray;
1214 typedef std::vector<VArray> V;
1217 : o(std::numeric_limits<double>::max())
1223 typedef std::map<std::string, ResultMap> Result;
1241 void readFile(
const std::string& _fileName);
1243 void read(Poco::Dynamic::Var val);
1248 void SetPair(std::string val)
1254 return (pair !=
"Empty");
1278 Poco::AutoPtr<ServerTime> GetServerTime();
1281 Poco::AutoPtr<AssetInfo> GetAssetInfo(Poco::AutoPtr<AssetInfoParams> assetInfoParams);
1284 Poco::AutoPtr<AssetPairs> GetAssetPairs(Poco::AutoPtr<AssetPairsParams> assetPairsParams);
1288 Poco::AutoPtr<TickerInformation> GetTickerInformation(Poco::AutoPtr<TickerInformationParams> tickerInformationParams);
1294 Poco::AutoPtr<OHLCData> GetOHLCData(Poco::AutoPtr<OHLCDataParams> oHLCDataParams);
1297 Poco::AutoPtr<AccountBalance> GetAccountBalance();
1300 Poco::AutoPtr<OrderBook> GetOrderBook(Poco::AutoPtr<OrderBookParams> orderBookParams);
1303 Poco::AutoPtr<RecentTrades> GetRecentTrades(Poco::AutoPtr<RecentTradesParams> recentTradesParams);
1306 Poco::AutoPtr<RecentSpread> GetRecentSpread(Poco::AutoPtr<RecentSpreadParams> recentSpreadParams);
1309 Poco::AutoPtr<StandardOrder> AddStandardOrder(Poco::AutoPtr<StandardOrderParams> standardOrderParams);
1313 Poco::AutoPtr<trader::App> _app;
Definition: krakenapi.h:837
Definition: krakenapi.h:749
Definition: krakenapi.h:191
Definition: krakenapi.h:778
Definition: krakenapi.h:52
Definition: krakenapi.h:951
Definition: krakenapi.h:789
Definition: krakenapi.h:702
Definition: krakenapi.h:500
Definition: krakenapi.h:471
Definition: krakenapi.h:50
Definition: krakenapi.h:445
Definition: krakenconfig.h:7
Definition: krakenapi.h:896
Definition: krakenapi.h:386
Definition: krakenapi.h:603
Definition: krakenapi.h:962
Definition: krakenapi.h:434
Definition: krakenapi.h:894
Definition: krakenapi.h:193
Definition: krakenapi.h:13
Definition: krakenapi.h:24
Definition: krakenapi.h:511
Definition: krakenapi.h:460
Definition: krakenapi.h:180
Definition: krakenapi.h:130
Definition: krakenapi.h:662
Definition: krakenapi.h:572
Definition: krakenapi.h:651
Definition: krakenapi.h:839
Definition: krakenapi.h:826
Definition: krakenapi.h:119
Definition: krakenapi.h:881
Definition: krakenapi.h:39
Definition: krakenapi.h:614
Definition: krakenapi.h:561
Definition: krakenapi.h:892
Definition: krakenapi.h:574
Definition: krakenapi.h:691
Definition: krakenapi.h:738
Definition: krakenapi.h:1269
Definition: krakenapi.h:397