Blame |
Last modification |
View Log
| Download
| RSS feed
package br.com.sl.domain.dto;
import java.math.BigDecimal;
public class OrdemBinanceDTO
{
// Campos básicos esperados pela Binance Futures
private String symbol
; // Ex: "BTCUSDT"
private String side
; // "BUY" ou "SELL"
private String type
; // "LIMIT", "MARKET", etc.
private String timeInForce
; // "GTC", "IOC", etc.
private BigDecimal quantity
; // tamanho da posição
private BigDecimal price
; // preço de entrada
// Campos auxiliares para sua estratégia (não são obrigatórios na Binance,
// mas você pode usar no seu executor):
private BigDecimal stopLoss
; // stop (ex: stopMenos100)
private BigDecimal takeProfit1
; // alvo1
private BigDecimal takeProfit2
; // alvo2
private String clientOrderId
; // ID interno para rastrear (padrão + candle)
// Getters e setters
public String getSymbol
() { return symbol
; }
public void setSymbol
(String symbol
) { this.
symbol = symbol
; }
public String getSide
() { return side
; }
public void setSide
(String side
) { this.
side = side
; }
public String getType
() { return type
; }
public void setType
(String type
) { this.
type = type
; }
public String getTimeInForce
() { return timeInForce
; }
public void setTimeInForce
(String timeInForce
) { this.
timeInForce = timeInForce
; }
public BigDecimal getQuantity
() { return quantity
; }
public void setQuantity
(BigDecimal quantity
) { this.
quantity = quantity
; }
public BigDecimal getPrice
() { return price
; }
public void setPrice
(BigDecimal price
) { this.
price = price
; }
public BigDecimal getStopLoss
() { return stopLoss
; }
public void setStopLoss
(BigDecimal stopLoss
) { this.
stopLoss = stopLoss
; }
public BigDecimal getTakeProfit1
() { return takeProfit1
; }
public void setTakeProfit1
(BigDecimal takeProfit1
) { this.
takeProfit1 = takeProfit1
; }
public BigDecimal getTakeProfit2
() { return takeProfit2
; }
public void setTakeProfit2
(BigDecimal takeProfit2
) { this.
takeProfit2 = takeProfit2
; }
public String getClientOrderId
() { return clientOrderId
; }
public void setClientOrderId
(String clientOrderId
) { this.
clientOrderId = clientOrderId
; }
}