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

com.bybit.api.client.service.TimeInForceSerializer 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.service;
import com.bybit.api.client.domain.trade.TimeInForce;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.JsonSerializer;

import java.io.IOException;
public class TimeInForceSerializer extends JsonSerializer {
    @Override
    public void serialize(TimeInForce value, JsonGenerator gen, SerializerProvider provider) throws IOException {
        gen.writeString(value.getDescription());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy