1111 * DTO representing "Aggregate Trade Stream" object from binance-exchange.
1212 * See https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#aggregate-trade-streams
1313 */
14- class AggregateTrade : public oatpp ::Object {
14+ class AggregateTrade : public oatpp ::DTO {
1515
16- DTO_INIT (AggregateTrade, Object )
16+ DTO_INIT (AggregateTrade, DTO )
1717
1818 DTO_FIELD (String, eventType, " e" );
1919 DTO_FIELD (Int64, eventTime, " E" );
@@ -33,9 +33,9 @@ class AggregateTrade : public oatpp::Object {
3333 * DTO representing "Trade Stream" object from binance-exchange.
3434 * See https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#trade-streams
3535 */
36- class Trade : public oatpp ::Object {
36+ class Trade : public oatpp ::DTO {
3737
38- DTO_INIT (Trade, Object )
38+ DTO_INIT (Trade, DTO )
3939
4040 DTO_FIELD (String, eventType, " e" );
4141 DTO_FIELD (Int64, eventTime, " E" );
@@ -54,9 +54,9 @@ class Trade : public oatpp::Object {
5454/* *
5555 * Nested object for Candlestick
5656 */
57- class Kline : public oatpp ::Object {
57+ class Kline : public oatpp ::DTO {
5858
59- DTO_INIT (Kline, Object )
59+ DTO_INIT (Kline, DTO )
6060
6161 DTO_FIELD (Int64, klineStartTime, " t" );
6262 DTO_FIELD (Int64, klineCloseTime, " T" );
@@ -86,14 +86,14 @@ class Kline : public oatpp::Object {
8686 * DTO representing "Kline/Candlestick Stream" object from binance-exchange.
8787 * See https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#klinecandlestick-streams
8888 */
89- class Candlestick : public oatpp ::Object {
89+ class Candlestick : public oatpp ::DTO {
9090
91- DTO_INIT (Candlestick, Object )
91+ DTO_INIT (Candlestick, DTO )
9292
9393 DTO_FIELD (String, eventType, " e" );
9494 DTO_FIELD (Int64, eventTime, " E" );
9595 DTO_FIELD (String, symbol, " s" );
96- DTO_FIELD (Kline::ObjectWrapper , kline, " k" );
96+ DTO_FIELD (Object< Kline> , kline, " k" );
9797
9898};
9999
0 commit comments