📈 QuotexPy is a library for interact with qxbroker easily.
Project description
Installing
📈 QuotexPy is tested on Ubuntu 18.04 and Windows 10 with python >= 3.10, <= 3.11..
pip install quotexpy
If you plan to code and make changes, clone and install it locally.
git clone https://github.com/SantiiRepair/quotexpy.git
pip install -e .
Import
from quotexpy.new import Quotex
Login by email and password
from quotexpy.new import Quotex
client = Quotex(email="user@email.com", password="password", browser=True)
# if connect success return True or None
# if connect fail return False or None
client.debug_ws_enable = False
check_connect, message = client.connect()
print(check_connect, message)
Check_win & buy sample
from quotexpy.new import Quotex
client = Quotex(email="user@email.com", password="password", browser=True)
client.debug_ws_enable = False
check_connect, message = client.connect()
print(check_connect, message)
if check_connect:
client.change_account("PRACTICE")
amount = 30
asset = "EURUSD_otc" # "EURUSD_otc"
direction = "call"
duration = 10 # in seconds
status, buy_info = client.buy(amount, asset, direction, duration)
print(status, buy_info)
print("Balance: ", client.get_balance())
print("Exiting...")
client.close()
⚠️ Atention
Because cloudfare blocks requests you should enable browser=True
to avoid HTTP 403
errors.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quotexpy-1.0.5.tar.gz
(178.1 kB
view details)
Built Distribution
quotexpy-1.0.5-py3-none-any.whl
(190.3 kB
view details)
File details
Details for the file quotexpy-1.0.5.tar.gz
.
File metadata
- Download URL: quotexpy-1.0.5.tar.gz
- Upload date:
- Size: 178.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.1.43
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071aa5715bb8a9e939106bb97b806d8d347d2cd6ea4008339765dc7b5b963d2f |
|
MD5 | 4667d530a94d98949a5a0a6022004c22 |
|
BLAKE2b-256 | 8f6acf9441d060aefdaddba82695414d6bb8d4b5e97882aa1b752b4e5f5be8bf |
File details
Details for the file quotexpy-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: quotexpy-1.0.5-py3-none-any.whl
- Upload date:
- Size: 190.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.1.43
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2150384c5becce8f4228a252c178a1e0afa681931c4437ac20f7501a4ca7a3 |
|
MD5 | 5cc0514550dd3d72c2e11edf22c7e76f |
|
BLAKE2b-256 | 81a611879e8fd9141ec3757e037959a30d95d415b128fb40147a8f87b6ca8071 |