All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bybit.api.client.domain.trade.response.OrderResult Maven / Gradle / Ivy

Go to download

The Official Java API connector for Bybit's HTTP and WebSocket APIs. Dive into a plethora of functionalities: - Market Data Retrieval - Trade Execution - Position Management - Account and Asset Info Retrieval - User and Upgrade Management — Public Websocket Streaming - Private Websocket Streaming - Lending Institution and Client - Broker Earning Data

The newest version!
package com.bybit.api.client.domain.trade.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * Trade order information.
 */
@JsonPropertyOrder()
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class OrderResult {
    @JsonProperty("nextPageCursor")
    private String nextPageCursor;
    @JsonProperty("category")
    private String category;
    @JsonProperty("list")
    private List orderEntries;

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("OrderResult[nextPageCursor=").append(nextPageCursor)
                .append(", category=").append(category)
                .append(",orderEntries=[\n");

        for (OrderEntry entry : orderEntries) {
            builder.append("\t").append(entry.toString()).append(",\n");
        }

        builder.append("]]");

        return builder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy