-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
“VincentCai”
committed
May 21, 2024
1 parent
c92fd86
commit 2eb0eaf
Showing
3 changed files
with
188 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
110 changes: 110 additions & 0 deletions
110
src/main/java/com/huobi/wss/event/ContractElementSubResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
package com.huobi.wss.event; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class ContractElementSubResponse { | ||
private String op; | ||
private String topic; | ||
private long ts; | ||
private List<DataEntry> data; | ||
public static class DataEntry { | ||
private String contract_code; | ||
private int mode_type; | ||
private int swap_delivery_type; | ||
private String instrument_index_code; | ||
private int real_time_settlement; | ||
private double transfer_profit_ratio; | ||
private double cross_transfer_profit_ratio; | ||
private List<String> instrument_type; | ||
private String trade_partition; | ||
private int min_level; | ||
private int max_level; | ||
private int settle_period; | ||
private int funding_rate_cap; | ||
private int funding_rate_floor; | ||
private ContractInfos contract_infos; | ||
private List<PriceTick> price_ticks; | ||
private List<InstrumentValue> instrument_values; | ||
private List<OrderLimit> order_limits; | ||
private NormalLimit normal_limits; | ||
private OpenLimit open_limits; | ||
private TradeLimit trade_limits; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class ContractInfos { | ||
private String contract_code; | ||
private String instrument_type; | ||
private String settlement_date; | ||
private String delivery_time; | ||
private String create_date; | ||
private int contract_status; | ||
private String delivery_date; | ||
private ContractInfoDetails contract_infos; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class ContractInfoDetails { | ||
private int long_position_limit; | ||
private int offset_order_limit; | ||
private int open_order_limit; | ||
private int short_position_limit; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class PriceTick { | ||
private int business_type; | ||
private String price; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class InstrumentValue { | ||
private int business_type; | ||
private String price; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class OrderLimit { | ||
private int instrument_type; | ||
private String open; | ||
private String close; | ||
private String open_after_closing; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class NormalLimit { | ||
private int instrument_type; | ||
private String open; | ||
private String close; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class OpenLimit { | ||
private int instrument_type; | ||
private String open; | ||
private String close; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class TradeLimit { | ||
private int instrument_type; | ||
private String open; | ||
private String close; | ||
|
||
// Getters and setters | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
src/main/java/com/huobi/wss/event/SymbolContractElementSubResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package com.huobi.wss.event; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class SymbolContractElementSubResponse { | ||
private String op; | ||
private String topic; | ||
private Long ts; | ||
private List<Data> data; | ||
public static class Data { | ||
private String contract_code; | ||
private String instrument_index_code; | ||
private Integer real_time_settlement; | ||
private Number transfer_profit_ratio; | ||
private Integer min_level; | ||
private Integer max_level; | ||
private List<ContractInfo> contract_infos; | ||
private String delivery_time; | ||
private String create_date; | ||
private Integer contract_status; | ||
private String delivery_date; | ||
private Integer open_order_limit; | ||
private Integer offset_order_limit; | ||
private Integer long_position_limit; | ||
private Integer short_position_limit; | ||
private Integer week_hig_normal_limit; | ||
private Integer week_min_normal_limit; | ||
private Integer week_hig_open_limit; | ||
private Integer week_min_open_limit; | ||
private Integer week_hig_trade_limit; | ||
private Integer week_min_trade_limit; | ||
private Integer biweek_hig_normal_limit; | ||
private Integer biweek_min_normal_limit; | ||
private Integer biweek_hig_open_limit; | ||
private Integer biweek_min_open_limit; | ||
private Integer biweek_hig_trade_limit; | ||
private Integer biweek_min_trade_limit; | ||
private Integer quarter_hig_normal_limit; | ||
private Integer quarter_min_normal_limit; | ||
private Integer quarter_hig_open_limit; | ||
private Integer quarter_min_open_limit; | ||
private Integer quarter_hig_trade_limit; | ||
private Integer quarter_min_trade_limit; | ||
private Integer biquarter_hig_normal_limit; | ||
private Integer biquarter_min_normal_limit; | ||
private Integer biquarter_hig_open_limit; | ||
private Integer biquarter_min_open_limit; | ||
private Integer biquarter_hig_trade_limit; | ||
private Integer biquarter_min_trade_limit; | ||
private List<Integer> instrument_type; | ||
private List<OrderLimit> order_limits; | ||
} | ||
|
||
public static class ContractInfo { | ||
private String contract_code; | ||
private List<Integer> instrument_type; | ||
private String delivery_time; | ||
private String create_date; | ||
private Integer contract_status; | ||
private String delivery_date; | ||
|
||
// Getters and setters | ||
} | ||
|
||
public static class OrderLimit { | ||
private Integer instrument_type; | ||
private String open; | ||
private String close; | ||
|
||
// Getters and setters | ||
} | ||
} |