Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Plasma Finance Sdk 是一个基于 Python 的金融数据获取工具包;它提供了简单高效的 API 接口,能方便快速的获取金融相关数据,协助您进行量化研究。
使用方式也非常简单:
from plasmasdk.sdk_v2 import *
if __name__ == '__main__':
# 鉴权信息
access_key = ""
secret_key = ""
res_method = 'POST'
server_ip = ''
# 设置全局鉴权信息
set_global_info(AccessKey = access_key,SecretKey = secret_key,ResMethod = res_method,ServerIp = server_ip)
# 000688科创50指数成分股
index_component = get_index_indexcomponent(symbols=["000688"])
# 成分股数量
print("index_component_length:",len(index_component['symbol']))
symbols = index_component['symbol']
# 设置报告期
report_date1 =['20231231']
# 指标字段域 (资产总计,负债合计,归属于母公司所有者权益合计,货币资金)
field = ["totasset","totliab","paresharrigh","curfds"]
# 指标对应函数
functions_and_args = [("totasset", "get_s_totasset",{"code": symbols, "report_date": report_date1, "report_type": '3'})]
import time
start_time = time.time()
result = get_query_builder(field,functions_and_args)
# result['symbol']=result.apply(lambda x:str(x['symbol']),axis=1)
# result.to_csv("fundamental.csv",index=False)
print("finance date :" + str(result))
end_time = time.time()
execution_time = end_time - start_time
print(f"ALLQUERY执行时间:{execution_time} 秒")
pip install plasmasdk
FAQs
Plasma Finance SDK
We found that plasmasdk 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.