mtcli-risco 1.0.0__tar.gz → 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mtcli-risco
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: Plugin do mtcli
5
5
  License: GPL-3.0
6
6
  Author: Valmir França da Silva
@@ -11,6 +11,7 @@ from .risco import (
11
11
  risco_excedido,
12
12
  encerrar_todas_posicoes,
13
13
  cancelar_todas_ordens,
14
+ calcular_lucro_total_dia,
14
15
  )
15
16
 
16
17
 
@@ -26,20 +27,18 @@ log = setup_logger()
26
27
  help="Limite de perda diária (ex: -500), default -180.00.",
27
28
  )
28
29
  @click.option(
29
- "--status",
30
+ "--lucro",
30
31
  is_flag=True,
31
32
  default=False,
32
33
  help="Exibe o lucro total do dia atualizado e sai.",
33
34
  )
34
- def cli(limite, status):
35
+ def cli(limite, lucro):
35
36
  """Monitora e bloqueia ordens se o limite de prejuízo for atingido."""
36
37
  conectar()
37
38
 
38
- if status:
39
- from .risco import calcular_lucro_total_dia
40
-
39
+ if lucro:
41
40
  lucro = calcular_lucro_total_dia()
42
- click.echo(f"Lucro total do dia (realizado + aberto): {lucro:.2f}")
41
+ click.echo(f"Lucro total do dia: {lucro:.2f}")
43
42
  shutdown()
44
43
  return
45
44
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mtcli-risco"
3
- version = "1.0.0"
3
+ version = "1.1.0"
4
4
  description = "Plugin do mtcli"
5
5
  authors = [
6
6
  {name = "Valmir França da Silva",email = "vfranca3@gmail.com"}
File without changes
File without changes