Painel de Negociações (Boleta)
Painel lateral de entrada de ordens. Inclui segmented control Avançado/Simples, campos de estratégia, quantidade e preço, botões de compra/venda por tipo de ordem, ação Zerar e resumo de posição.
Preview
Versão AvançadoVersão Simples
Estratégia
Disp.258.010.200,00 USDT
Quantidade
Preço da Ordem
PosiçãoZerado
Qtd: 0MÉDIO (BM)
ResultadoR$ 0,00
Estratégia
Disp.258.010.200,00 USDT
Quantidade
Preço da Ordem
PosiçãoZerado
Qtd: 0MÉDIO (BM)
ResultadoR$ 0,00
Código
Copie e cole no Claude Code para implementar este componente em pixel-perfect usando os tokens TRDR.
<!-- Painel de Negociações (Boleta) -->
<div class="trdr-boleta">
<!-- Abas -->
<div class="trdr-boleta-abas">
<div class="trdr-boleta-segment-control">
<button class="trdr-boleta-segment trdr-boleta-segment-active">Avançado</button>
<button class="trdr-boleta-segment">Simples</button>
</div>
</div>
<!-- Campos -->
<div class="trdr-boleta-container">
<!-- Estratégia -->
<div style="display:flex;align-items:center;justify-content:space-between">
<span class="trdr-boleta-label">Estratégia</span>
<span style="color:var(--content-primary);font-size:12px;font-weight:500">Manejo ▾</span>
</div>
<!-- Disponível -->
<div style="display:flex;align-items:center;justify-content:space-between">
<span class="trdr-boleta-label">Disp.</span>
<span style="color:var(--content-primary);font-size:12px;font-weight:500">258.010.200,00 USDT</span>
</div>
<!-- Quantidade -->
<div style="display:flex;flex-direction:column;gap:8px">
<span class="trdr-boleta-label">Quantidade</span>
<input class="trdr-boleta-input" placeholder="Inserir" />
<div style="display:flex;gap:4px">
<button class="trdr-boleta-quick-btn">1</button>
<button class="trdr-boleta-quick-btn">2</button>
<button class="trdr-boleta-quick-btn">3</button>
</div>
</div>
<!-- Preço da Ordem -->
<div style="display:flex;flex-direction:column;gap:8px">
<span class="trdr-boleta-label">Preço da Ordem</span>
<input class="trdr-boleta-input" value="0,00" />
</div>
<!-- TP/SL -->
<label style="display:flex;align-items:center;gap:8px;cursor:pointer">
<input type="checkbox" style="display:none" />
<span style="width:16px;height:16px;border:1px solid var(--border-default);border-radius:5px;background:var(--surface-tertiary);flex-shrink:0;display:block"></span>
<span style="font-size:12px;font-weight:500;color:var(--content-primary)">TP/SL</span>
</label>
</div>
<!-- Botões -->
<div class="trdr-boleta-botoes">
<div style="display:flex;gap:8px">
<button class="trdr-boleta-btn-long">CP Limite</button>
<button class="trdr-boleta-btn-short">VD Limite</button>
</div>
<div style="display:flex;gap:8px">
<button class="trdr-boleta-btn-long">CP Mercado</button>
<button class="trdr-boleta-btn-short">VD Mercado</button>
</div>
<div style="display:flex;gap:8px">
<button class="trdr-boleta-btn-long">Bid</button>
<button class="trdr-boleta-btn-short">Ask</button>
</div>
<button class="trdr-boleta-btn-zerar">Zerar (5)</button>
<button class="trdr-boleta-btn-ghost">Cancelar ordens (2) + Zerar (5)</button>
<div style="display:flex;gap:8px">
<button class="trdr-boleta-btn-ghost" style="width:auto;flex-shrink:0">Cancelar Ordem</button>
<button class="trdr-boleta-btn-ghost" style="flex:1;min-width:100px">Inverter</button>
</div>
</div>
</div>Dimensões
| Variante | Largura | Altura |
|---|---|---|
| Largura fixa | 283px | — |
| Abas (header) | 100% | 45px |
| Input de campo | 100% | 32px |
| Botão de ação | flex-1 | 32–34px |
Props / Variantes
| Prop | Tipo | Valores |
|---|---|---|
versao | enum | avancadosimples |
Tokens Utilizados
| Propriedade | Token | Valor | |
|---|---|---|---|
| Comprar BG | context.trading.long.default | rgba(79,226,144,0.08) | |
| Comprar hover BG | context.trading.long.hover | rgba(79,226,144,0.12) | |
| Comprar texto | context.trading.long.text | #4FE290 | |
| Vender BG | context.trading.short.default | rgba(243,79,69,0.08) | |
| Vender hover BG | context.trading.short.hover | rgba(243,79,69,0.12) | |
| Vender texto | context.trading.short.text | #F34F45 | |
| Zerar borda/texto | color.orange.500 | #FF6400 | |
| Zerar hover BG | context.trading.stop.alpha | rgba(255,100,0,0.08) | |
| Segment control BG | surface.secondary | #222222 | |
| Segment ativo BG | action.secondary.default | #4A4A4A | |
| Input BG | surface.primary | #4A4A4A | |
| Borda seção | border.subtle | #222222 | |
| Posição "Zerado" | content.success | #4FE290 |
Anatomia
Painel de 283px de largura com border-left sutil. 3 seções: Abas (45px, segmented control pill), Container (padding 8px, gap 16px — linhas de info, inputs 32px, quick buttons e checkbox TP/SL), Botões (padding 8px, gap 8px — rows de Compra+Venda, Zerar, Cancel, grupo Cancelar/Inverter, resumo Posição).