semvec/pypi-packages huggingface dataset:
mtoption 0.2.0
Utilitario de linha de comando para operacoes com opcoes no MetaTrader 5
License: MIT
Requires Python: >=3.8,<4.0
Keywords: metatrader5,trading,opções,cli

# MTOption  

Utilitário de linha de comando para operações com opções utilizando o MetaTrader5.  

------------

## Pré-requisitos  

* [MetaTrader5](https://www.metatrader5.com/pt) - Plataforma de trading.  
* [API.ex5](https://drive.google.com/file/d/1Osofc0PfxHpKk6FVCVucaSGnlmSPtnaL/view?usp=sharing) - Expert advisor executando no MetaTrader5.  
* [Python](https://www.python.org/downloads/windows) - Interpretador de comandos disponível no prompt de comando.  

## Instalação

```
> pip install mtoption
```

## Comandos  

### op bullspread  
Exibe dados de uma trava de alta.  
```
op bullspread <opcao1> <opcao2>  
ou  
ta <opcao1> <opcao2>  
```
Exibe dados da trava de alta com opcao1 e opcao2.  
Exemplo:  
```
ta bovac110 bovac109  
```
resultado:  
Bull Spread  
venda BOVAC110 0.14  
compra BOVAC109 0.17  
saldo -0.03  

### op bearspread  
Exibe dados de uma trava de baixa.  
```
op bearspread <opcao1> <opcao2>  
ou  
tb <opcao1> <opcao2>  
```
Exibe dados da trava de baixa com opcao1 e opcao2.  
Exemplo:  
```
tb bovao109 bovao110  
```
resultado:  
Bear Spread  
venda BOVAO109 0.14  
compra BOVAO110 0.17  
saldo -0.03
discord-flags 2.1.1
A Discord.py extension allowing you to pass flags as arguments.
License: MIT

[download]: https://pypi.org/project/discord-flags/
[version]: https://img.shields.io/pypi/v/Discord-Flags
[license]: https://github.com/XuaTheGrate/Flag-Parsing/blob/master/LICENSE.md
[license-s]: https://img.shields.io/github/license/XuaTheGrate/Flag-Parsing
[python]: https://www.python.org/
[python-s]: https://img.shields.io/pypi/pyversions/discord-flags

[ ![version][] ][download]
[ ![python-s][] ][python]
[ ![license-s][] ][license]

âš  Please be sure to read the entire README, it explains
some important tricks.

# Flag Parsing
A util for discord.py bots that allow passing flags into commands.

To install, run the following command:
```
pip install discord-flags
```

You can install the legacy parser by running:
```
pip install discord-flags==1.5.2
```

**2.1.0 changes how signatures appear. If you wish to use
the legacy signatures, use `command.old_signature` instead.**

Basic example usage:

```python
import discord
from discord.ext import flags, commands

bot = commands.Bot("!")

# Invocation: !flags --count=5 --string "hello world" --user Xua --thing y

@flags.add_flag("--count", type=int, default=10)
@flags.add_flag("--string", default="hello!")
@flags.add_flag("--user", type=discord.User)
@flags.add_flag("--thing", type=bool)
@flags.command()
async def flags(ctx, **flags):
    await ctx.send("--count={count!r}, --string={string!r}, --user={user!r}, --thing={thing!r}".format(**flags))
bot.add_command(flags)
```

Important note that `@flags.command` MUST be under all `@flags.add_flag`
decorators.

`@flags.add_flag` takes the same arguments as `argparse.ArgumentParser.add_argument`
to keep things simple.

Subcommands are just as simple:
```python
@commands.group()
async def my_group(ctx):
    ...

@flags.add_flag("-n")
@my_group.command(cls=flags.FlagCommand)
async def my_subcommand(ctx, **flags):
    ...
```

Usage of discord.py's `consume rest` behaviour is not perfect with `discord-flags`,
meaning that you have to use a flag workaround:
```python
@flags.add_flag("message", nargs="+")
@flags.command()
async def my_command(ctx, arg1, **options):
    """ You can now access `message` via `options['message'][0]` """
```