Componentes/Painel de Negociações (Boleta)

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.

Trading
Figma: 903:1853

Preview

Versão Avançado
Estratégia
Disp.258.010.200,00 USDT
Quantidade
Preço da Ordem
PosiçãoZerado
Qtd: 0MÉDIO (BM)
ResultadoR$ 0,00
Versão Simples
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

VarianteLarguraAltura
Largura fixa283px
Abas (header)100%45px
Input de campo100%32px
Botão de açãoflex-132–34px

Props / Variantes

PropTipoValores
versaoenum
avancadosimples

Tokens Utilizados

PropriedadeTokenValor
Comprar BGcontext.trading.long.default
rgba(79,226,144,0.08)
Comprar hover BGcontext.trading.long.hover
rgba(79,226,144,0.12)
Comprar textocontext.trading.long.text
#4FE290
Vender BGcontext.trading.short.default
rgba(243,79,69,0.08)
Vender hover BGcontext.trading.short.hover
rgba(243,79,69,0.12)
Vender textocontext.trading.short.text
#F34F45
Zerar borda/textocolor.orange.500
#FF6400
Zerar hover BGcontext.trading.stop.alpha
rgba(255,100,0,0.08)
Segment control BGsurface.secondary
#222222
Segment ativo BGaction.secondary.default
#4A4A4A
Input BGsurface.primary
#4A4A4A
Borda seçãoborder.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).