semvec/pypi-packages huggingface dataset:
XTBApi 1.0a7
Api for XBT trading platform
License: MIT
Requires Python: >=3.6.0

# XTBApi

> Api for XTB trading platform.

A python based API for XTB trading using _websocket_client_.

# Installing / Getting started

To install the API, just clone the repository.

```bash
git clone git@github.com:federico123579/XTBApi.git
cd XTBApi/
python3 -m venv env
. env/bin/activate
pip install .
```

Then you can use XTBApi like this simple tutorial.
```python
from XTBApi.api import Client
# FIRST INIT THE CLIENT
client = Client()
# THEN LOGIN
client.login("{user_id}", "{password}", mode={demo,real})
# CHECK IF MARKET IS OPEN FOR EURUSD
client.check_if_market_open([EURUSD])
# BUY ONE VOLUME (FOR EURUSD THAT CORRESPONDS TO 100000 units)
client.open_trade('buy', EURUSD, 1)
# SEE IF ACTUAL GAIN IS ABOVE 100 THEN CLOSE THE TRADE
trades = client.update_trades() # GET CURRENT TRADES
trade_ids = [trade_id for trade_id in trades.keys()]
for trade in trade_ids:
    actual_profit = client.get_trade_profit(trade) # CHECK PROFIT
    if actual_profit >= 100:
        client.close_trade(trade) # CLOSE TRADE
# CLOSE ALL OPEN TRADES
client.close_all_trades()
# THEN LOGOUT
client.logout()
```

# Api Reference
REQUIRED - **SOON**

_Documentation still in progess_
pygments-vice 0.1.3
pygments-vice is a pygments style that is a port of the vim-vice colorscheme
License: MIT
Keywords: syntax highlighting pygments style

# pygments-vice
![logo][logo]

This pygments style is a port of the [vim-vice](https://github.com/bcicen/vim-vice) colorscheme for vim

Vice is a dark and vibrant style for pygments

![screencap][screencap]


## Installation

```commandline
pip install pygments-vice
```

After installed, you will have a new style available to use with pygments called `vice`


[logo]: http://i.imgur.com/HWvyN7M.png "vice"
[screencap]: https://i.imgur.com/jt6TthK.png "vice"