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.
API for live OHLC feed
You can install project using pip:
pip install LiveCandles
Use this API for getting live OHLC candle-stick for free, it will relay the data of time intervals from 5 to 59 minutes starting from the next mutiple for 5 minute.
It has two modes for getting data as shown below:
data = LiveCandles.ohlcStream('5minutes',indexCode = "NIFTY_50")
while True:
price = data.stream()
#use price as per your need
print(price)
from LiveCandles import ohlcStream
if __name__ == '__main__':
data = ohlcStream("5minutes", indexCode = "NIFTY_50")
while True:
price = (data.streamMP())
#use price as per your need
print(price)
First argument is interval should be specified as '5minutes' number can be anything from 5 to 59
indexCode(optional) to be specified to get index candle as per google finance code
stockCode(optional) to be specified to get stock candle as per google finance code
Data generated is not very accurate, due to netwrok latency, call restriction. Avoid using for taking order placing decsions on it's basis. One can override getCurrentPrice() method for more reliable price fetching.
FAQs
API for getting live OHLC candle-stick data of Indian Stocks for free
We found that LiveCandles 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.