Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
a lovable data analysis and algorithmic trading library for cryptocurrencies,including tools for deploying and analyzing any strategy
including tools for deploying any strategy including pattern based strategies, Price Action strategies, Indicator based strategies and also Machine learning based strategies. able to run multi strategy instances on a single bot as a webapp and a lot more...
[!NOTE] for usage examples please checkout examples folder and open provided notebooks.
pip install -e git+https://github.com/hadif1999/pycoin.git#egg="pythoncoin"
if you need extra dependencies such as ploting or AI packages add [extra](name of extra dependency that will be mentioned below) to end of "pythoncoin" (keep using quotes)
example of installing plotting and jupyter dependencies:
pip install -e git+https://github.com/hadif1999/pycoin.git#egg="pythoncoin[jupyter,plot]"
please be careful not to use spaces between extra packages list
available extra packages:
!pip install pythoncoin
!pip install pythoncoin[plot]
as mentioned earlier you can also use ai, plot, jupyter, hdf5 or all to install needed extra dependencies.
after installation you can run below code to download market historical data:
from pycoin.data_gathering import KlineData_Fetcher
import datetime as dt
df = KlineData_Fetcher(symbol="BTC/USDT",
timeframe="4h",
data_exchange="binance",
since = dt.datetime(2020, 1, 1)
)
from pycoin.plotting import Market_Plotter
plots = Market_Plotter(OHLCV_df=df)
# if plot_by_grp is False then it will plot the whole candlestick data
figure = plots.plot_market()
# if plot_by_grp is True you can plot candlestick data by group and plot a specific year, month,etc.
figure = plots.plot_market(plot_by_grp=True, grp={"year":2023, "month":2})
figure.show()
from pycoin.data_gathering import get_market_High_Lows
df = get_market_High_Lows(df, candle_range = 100)
df
candle_range : range of candles to look for high and lows
plots.plot_high_lows(df, R = 800, y_scale= 0.5)
the method above puts a circle for each high and low. R is the radius and y_scale can scale the price in y axis for better visualizing.
every trend that is found with any method such as high & lows, SMA,etc. adds a new column that holds the trend label for each row of data, and when you want to plot these trend you should give this column name to draw_trend_highlight method.
# finding trend
from pycoin.data_gathering import Trend_Evaluator
df = Trend_Evaluator.eval_trend_with_high_lows(df, HighLow_range=100)
# ploting trend
plots.draw_trend_highlight("high_low_trend", df,
add_high_lows_shapes = True,
R = 10000, # circle size of high and lows
y_scale = 0.1 # scales y dim of circles
)
df = Trend_Evaluator.eval_trend_with_MACD(df, drop_MACD_col = True)
plots.draw_trend_highlight("MACD_trend", df)
FAQs
a lovable data analysis and algorithmic trading library for cryptocurrencies,including tools for deploying and analyzing any strategy
We found that pythoncoin 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.