Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/ahmethakanbesel/finance-api
./finance-api serve
./finance-api serve --http=0.0.0.0:8080
go run main.go serve
docker run -p 8090:8090 -d --name finance-api -e PORT=8090 --restart unless-stopped finance-api
http://127.0.0.1:8090/api/tefas/fund/:code
:code
is the code of the fund to be fetched.
http://127.0.0.1:8090/api/yahoo/symbol/:symbol
:symbol
is the symbol of the stock to be fetched. For example, for THYAO.IS
:symbol
is THYAO.IS
.
http://127.0.0.1:8090/_
Default email is admin@example.com
and password is 1234567890
.
startDate
: Start date of the data to be fetched. Format: YYYY-MM-DD
endDate
: Optional, if not provided today
will be used. End date of the
data to be fetched. Format: YYYY-MM-DD
currency
: Currency of the data to be fetched. Can be either TRY
or USD
format
: Optional. Format of the data to be fetched. Available formats:
json
or csv
. Default is json
.http://127.0.0.1:8090/api/yahoo/symbol/THYAO.IS?startDate=2023-06-01&endDate=2023-09-30¤cy=TRY
import pandas as pd
API_URL = 'http://127.0.0.1:8090'
def get_data(symbol, start_date, end_date):
url = f'{API_URL}/api/yahoo/symbol/{symbol}?startDate={start_date}&endDate={end_date}&format=csv'
df = pd.read_csv(url, parse_dates=['Date'])
df.set_index('Date', inplace=True)
return df
FAQs
Unknown package
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.