Skip to main content

Plugin mtcli para gerenciamento de órdens

Project description

mtcli-trade

Este é um plugin para mtcli que adiciona o comando trade para gerenciamento de ordens e posições.


Instalação

pip install mtcli-trade

Comandos

  • compra a mercado: mt trade buy --symbol WINV25 (compra a mercado o ativo WINV25).
  • compra limitada: mt trade buy --symbol WINV25 --limit --preco 140200 (compra limitada do WINV25 no preço 140200).
  • venda a mercado: mt trade sell --symbol WINV25 (vende a mercado o ativo WINV25).
  • venda limitada: mt trade sell --symbol WINV25 --limit --preco 140800 (venda limitada do WINV25 no preço 140800).
  • exibe todas as ordens pendentes:
    mt trade orders (exibe todas as ordens pendentes),
    mt trade orders --symbol WINV25(exibe todas as ordens pendentes de WINV25).
  • Cancela todas as ordens pendentes:
    mt trade cancel (cancela todas as ordens pendentes),
    mt trade cancel --symbol WINV25(cancela todas as ordens pendentes de WINV25).
  • exibe todas as posições abertas:
    mt trade pos (exibe todas as posições abertas),
    mt trade pos --symbol WINV25(exibe todas as posições abertas de WINV25).
  • Encerra todas as posições abertas:
    mt trade zera (encerra todas as posições abertas),
    mt trade zera --symbol WINV25(encerra todas as posições abertas de WINV25).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mtcli_trade-2.0.0.dev0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mtcli_trade-2.0.0.dev0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file mtcli_trade-2.0.0.dev0.tar.gz.

File metadata

  • Download URL: mtcli_trade-2.0.0.dev0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11

File hashes

Hashes for mtcli_trade-2.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 feebd591d726dca45efe0f793a766203a2376b45fc83e15aa717a92fbe587042
MD5 bb51a5683f8909ad385c8ce1c409e1c1
BLAKE2b-256 d50690ca3ff52c82b4979b5b0a3aa40b85ff9c784c4d15742397a72a0d5b6fa7

See more details on using hashes here.

File details

Details for the file mtcli_trade-2.0.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: mtcli_trade-2.0.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11

File hashes

Hashes for mtcli_trade-2.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 874c90fc863373e32d091e521ca34f63417ab68d554f0af92ee71d948588da0d
MD5 de2e7320ff09cf07d6ed04859276ef49
BLAKE2b-256 5ec59272bfc1458393d142f2c7534b9103010899196ab91da81443da0e555687

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page