11
11
* DTO representing "Aggregate Trade Stream" object from binance-exchange.
12
12
* See https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#aggregate-trade-streams
13
13
*/
14
- class AggregateTrade : public oatpp ::Object {
14
+ class AggregateTrade : public oatpp ::DTO {
15
15
16
- DTO_INIT (AggregateTrade, Object )
16
+ DTO_INIT (AggregateTrade, DTO )
17
17
18
18
DTO_FIELD (String, eventType, " e" );
19
19
DTO_FIELD (Int64, eventTime, " E" );
@@ -33,9 +33,9 @@ class AggregateTrade : public oatpp::Object {
33
33
* DTO representing "Trade Stream" object from binance-exchange.
34
34
* See https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#trade-streams
35
35
*/
36
- class Trade : public oatpp ::Object {
36
+ class Trade : public oatpp ::DTO {
37
37
38
- DTO_INIT (Trade, Object )
38
+ DTO_INIT (Trade, DTO )
39
39
40
40
DTO_FIELD (String, eventType, " e" );
41
41
DTO_FIELD (Int64, eventTime, " E" );
@@ -54,9 +54,9 @@ class Trade : public oatpp::Object {
54
54
/* *
55
55
* Nested object for Candlestick
56
56
*/
57
- class Kline : public oatpp ::Object {
57
+ class Kline : public oatpp ::DTO {
58
58
59
- DTO_INIT (Kline, Object )
59
+ DTO_INIT (Kline, DTO )
60
60
61
61
DTO_FIELD (Int64, klineStartTime, " t" );
62
62
DTO_FIELD (Int64, klineCloseTime, " T" );
@@ -86,14 +86,14 @@ class Kline : public oatpp::Object {
86
86
* DTO representing "Kline/Candlestick Stream" object from binance-exchange.
87
87
* See https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#klinecandlestick-streams
88
88
*/
89
- class Candlestick : public oatpp ::Object {
89
+ class Candlestick : public oatpp ::DTO {
90
90
91
- DTO_INIT (Candlestick, Object )
91
+ DTO_INIT (Candlestick, DTO )
92
92
93
93
DTO_FIELD (String, eventType, " e" );
94
94
DTO_FIELD (Int64, eventTime, " E" );
95
95
DTO_FIELD (String, symbol, " s" );
96
- DTO_FIELD (Kline::ObjectWrapper , kline, " k" );
96
+ DTO_FIELD (Object< Kline> , kline, " k" );
97
97
98
98
};
99
99
0 commit comments