Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 791 | blopes | 1 | package br.com.sl.domain.dto; |
| 2 | |||
| 3 | import java.math.BigDecimal; |
||
| 4 | |||
| 5 | public class OrdemBinanceDTO { |
||
| 6 | |||
| 7 | // Campos básicos esperados pela Binance Futures |
||
| 8 | private String symbol; // Ex: "BTCUSDT" |
||
| 9 | private String side; // "BUY" ou "SELL" |
||
| 10 | private String type; // "LIMIT", "MARKET", etc. |
||
| 11 | private String timeInForce; // "GTC", "IOC", etc. |
||
| 12 | private BigDecimal quantity; // tamanho da posição |
||
| 13 | private BigDecimal price; // preço de entrada |
||
| 14 | |||
| 15 | // Campos auxiliares para sua estratégia (não são obrigatórios na Binance, |
||
| 16 | // mas você pode usar no seu executor): |
||
| 17 | private BigDecimal stopLoss; // stop (ex: stopMenos100) |
||
| 18 | private BigDecimal takeProfit1; // alvo1 |
||
| 19 | private BigDecimal takeProfit2; // alvo2 |
||
| 20 | |||
| 21 | private String clientOrderId; // ID interno para rastrear (padrão + candle) |
||
| 22 | |||
| 23 | // Getters e setters |
||
| 24 | public String getSymbol() { return symbol; } |
||
| 25 | public void setSymbol(String symbol) { this.symbol = symbol; } |
||
| 26 | |||
| 27 | public String getSide() { return side; } |
||
| 28 | public void setSide(String side) { this.side = side; } |
||
| 29 | |||
| 30 | public String getType() { return type; } |
||
| 31 | public void setType(String type) { this.type = type; } |
||
| 32 | |||
| 33 | public String getTimeInForce() { return timeInForce; } |
||
| 34 | public void setTimeInForce(String timeInForce) { this.timeInForce = timeInForce; } |
||
| 35 | |||
| 36 | public BigDecimal getQuantity() { return quantity; } |
||
| 37 | public void setQuantity(BigDecimal quantity) { this.quantity = quantity; } |
||
| 38 | |||
| 39 | public BigDecimal getPrice() { return price; } |
||
| 40 | public void setPrice(BigDecimal price) { this.price = price; } |
||
| 41 | |||
| 42 | public BigDecimal getStopLoss() { return stopLoss; } |
||
| 43 | public void setStopLoss(BigDecimal stopLoss) { this.stopLoss = stopLoss; } |
||
| 44 | |||
| 45 | public BigDecimal getTakeProfit1() { return takeProfit1; } |
||
| 46 | public void setTakeProfit1(BigDecimal takeProfit1) { this.takeProfit1 = takeProfit1; } |
||
| 47 | |||
| 48 | public BigDecimal getTakeProfit2() { return takeProfit2; } |
||
| 49 | public void setTakeProfit2(BigDecimal takeProfit2) { this.takeProfit2 = takeProfit2; } |
||
| 50 | |||
| 51 | public String getClientOrderId() { return clientOrderId; } |
||
| 52 | public void setClientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; } |
||
| 53 | } |