io.contek.invoker.bybitinverse.api.websocket.user.ExecutionChannel Maven / Gradle / Ivy
package io.contek.invoker.bybitinverse.api.websocket.user;
import io.contek.invoker.bybitinverse.api.websocket.WebSocketChannel;
import io.contek.invoker.bybitinverse.api.websocket.WebSocketChannelId;
import io.contek.invoker.bybitinverse.api.websocket.common.WebSocketTopicMessage;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.NotThreadSafe;
import javax.annotation.concurrent.ThreadSafe;
import java.util.List;
@ThreadSafe
public final class ExecutionChannel extends WebSocketChannel {
ExecutionChannel() {
super(Id.INSTANCE);
}
@Override
public Class getMessageType() {
return Message.class;
}
@Immutable
public static final class Id extends WebSocketChannelId {
private static final Id INSTANCE = new Id();
private Id() {
super("execution");
}
}
@NotThreadSafe
public static final class Message extends WebSocketTopicMessage {
public List data;
}
@NotThreadSafe
public static final class Data {
public String symbol;
public String side;
public String order_id;
public String exec_id;
public String order_link_id;
public String price;
public Double order_qty;
public String exec_type;
public Double exec_qty;
public String exec_fee;
public Double leaves_qty;
public Boolean is_maker;
public String trade_time;
}
}