Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Platform that collects cryptocurrencies price data, fires alerts based on price sentiment and many other features.
XTCryptoSignals is a Python library that includes the following 3 services:
(Web Push Notifications are implemented with ServiceWorker that is compatible with the most known web browsers.)
Clone project repository:
git clone https://github.com/pantunes/xtcryptosignals.git
cd xtcryptosignals
Setup Python virtual environment:
virtualenv venv -p python3
source venv/bin/activate
Install package in develop mode:
pip install -e .
(Dependencies will be installed automatically from requirements.txt)
Before running xt-server
, xt-client
, xt-tasks
and tests the env var SETTINGS_APP
should be set to the path of its settings file.
This can be achieved inline SETTINGS_APP=<path to configuration>
followed by the app cli or
executing export SETTINGS_APP=<path to configuration>
before running any of the command line
.
Example of xt-client
settings file client.dev.env:
SECRET_KEY='bRdzq6ZMQ;HGB3JWVxs&WQ4>6r{'
GA_TRACKING_ID='UA-12341343-2'
Example of xt-server
or xt-tasks
settings file server.dev.env:
SECRET_KEY='MfYfEeom6)EyhcKcFh@+WGx8hvhP/,K67hA6'
CORS_ALLOWED_ORIGINS=('https://mydomain.com',)
MONGODB_HOST='localhost'
MONGODB_PORT=27017
MONGODB_NAME='MyDatabaseName'
Run tests:
SETTINGS_APP=server.dev.env python setup.py test
# or
SETTINGS_APP=server.dev.env pytest
Create folder project:
mkdir xtcryptosignals
cd xtcryptosignals
Setup Python virtual environment:
virtualenv venv -p python3
source venv/bin/activate
Install package:
pip install xtcryptosignals
It will populate some collections with data:
FLASK_ENV=development SETTINGS_APP=server.dev.env mongodb-migrate --url mongodb://127.0.0.1:27017/XTC-Dev --migrations xtcryptosignals/server/migrations/
Clone project repository:
git clone https://github.com/pantunes/xtcryptosignals.git
cd xtcryptosignals
Create multi-container Docker Applications:
docker-compose build
Nothing more is necessary...
SETTINGS_APP=server.dev.env xt-tasks
# to test 1 tick
SETTINGS_APP=server.dev.env xt-tasks --test
SETTINGS_APP=server.prod.env xt-tasks --log-ticker-minimal
To get a list of supported exchanges:
SETTINGS_APP=server.prod.env xt-tasks --list-config exchanges
binance
binance_dex
uphold
okex
idex
switcheo
hotbit
bibox
okcoin
bithumb
coinbene
dcoin
bitmax
bilaxy
bitstamp
kucoin
coinbase_pro
(Drop me an e-mail if you want support for a new exchange or please contribute to this project creating a pull request)
Command line help:
xt-tasks --help
Usage: xt-tasks [OPTIONS]
Use this tool to start all or part of the tasks.
Options:
--test Process 1 iteration for all configured coins
and/or tokens. (Useful for testing purposes)
--list-config [exchanges|currencies]
List 'exchanges' or 'currencies' (coins or
tokens) per exchange that are currently
supported.
-t, --task [cfgi|project|tether|ticker|notifications|order_book]
Task to be executed. If this parameter is
omitted all tasks will be started
-q, --queue TEXT Queue name to execute indicated tasks.
--disable-ticker-messaging Disable ticker message broadcasting.
--log-ticker-minimal Only log ticker errors and important
warnings in stdout.
--version Show version.
-h, --help Show this message and exit.
There is already an initial setup with some crypto-currencies (coins and tokens) that can be added or/and removed in settings_exchanges.py.
BIBOX: {
'pairs': [
('ONT', 'USDT'),
('ONT', 'BTC'),
('ONT', 'ETH'),
('NEO', 'USDT'),
('NEO', 'BTC'),
('NEO', 'ETH'),
('LTC', 'USDT'),
('LTC', 'BTC'),
('CARD', 'ETH'),
]
}
UPHOLD: {
'pairs': [
('BTC', 'USD'),
('ETH', 'USD'),
('LTC', 'USD'),
('XRP', 'USD'),
]
}
Initial setup to create dynamic MongoDB collections for data segmentation categorized by Exchanges pooling frequency in settings.py.
HISTORY_FREQUENCY = (
'10s', '30s', '1m', '10m', '30m', '1h', '2h', '3h', '4h', '12h', '1d', '4d',
'1w', '2w', '4w', '12w', '24w', '1y',
)
The Ticker service is highly performant as can take advantage of multi-processing multi-core CPU.
FLASK_ENV=development SETTINGS_APP=client.dev.env xt-server
Swagger API endpoints accessible at http://127.0.0.1:5000/apidocs
:
FLASK_ENV=production SETTINGS_APP=client.prod.env xt-server
FLASK_ENV=development SETTINGS_APP=client.dev.env xt-client
FLASK_ENV=production SETTINGS_APP=client.prod.env xt-client --num-workers=N
N corresponds to the number of workers to be spinned up.
xt-all --help
Usage: xt-all [OPTIONS] [copy-config-files|start|stop|restart]
Options:
-h, --help Show this message and exit.
For Production enviroment xt-all copy-config-files
should be executed on first place
to copy default config files to the folder /config
.
The configuration should be reviewed and changed, before running xt-all start
to start all 3 services: xt-server
, xt-client
and xt-tasks
.
With the following command all services will be started and running:
docker-compose up
Access the URL http://127.0.0.1:5000
to load the Platform client UI, nothing more is necessary...
Open the browser with the URL http://127.0.0.1:8000
:
Overview | Pairs |
---|---|
Coins/Tokens | Dark Theme |
Login | Portfolio |
Alerts Setup | Web Push Notification |
Twitter Chart | Crypto Fear & Greed Index Chart |
Tether Chart | Coin / Token Chart |
Market Depth | Telegram Notifications |
Spotlight Search | |
Pull Request to show how easy is to Add Kyber Network, Aave and Ren Projects/Tokens.
This project is work in progress and when it comes to trading use it at your own risk.
This project is licensed under the GNU License.
Through the website xtcryptosignals.com.
Thanks to Jetbrains in order to
support us with an Open Source license.
In case this project helped you in some way I'm accepting a small donation to keep this open-source project on-🔥 :
FAQs
Platform that collects cryptocurrencies price data, fires alerts based on price sentiment and many other features.
We found that XTCryptoSignals demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.