
Product
Rubygems Ecosystem Support Now Generally Available
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
A Package designed for connecting to a Stock Broker that uses Symphony Fintech Solutions Pvt. Ltd for there API.
This is a python client package for XTS API. XTS is product from Symphony Fintech Solutions Pvt. Ltd. The original documentation for XTS Client is linked here.
This package is a derivative work of the original package written by Symphony Fintech Solutions Pvt. Ltd.
Link for original GitHub Repository. It takes inspirations from the original, however it differs in the implementation.
Here is the folder structure of the project:
└───xts_api_client
│ interactive_socket.py
│ interactive_socket_client.py
│ market_data_socket.py
│ market_data_socket_client.py
│ py.typed
│ xts_connect.py
│ xts_connect_async.py
│ xts_exception.py
│ __init__.py
│
├───helper
helper.py
helper_classes.py
__init__.py
There are two version of xts_connect. A synchronous version & an asynchronous version.
import os
from dotenv import load_dotenv
load_dotenv()
API_key = os.getenv("API_KEY")
API_secret = os.getenv("API_SECRET")
API_source = os.getenv("API_SOURCE")
API_root = os.getenv("API_URL")
"""""""""""""""""""""""""""""""""""""""
|DataFrame for Cash Market|
"""""""""""""""""""""""""""""""""""""""
from xts_api_client.xts_connect_async import XTSConnect
from xts_api_client.helper.helper import cm_master_string_to_df
import asyncio
async def main():
xt_market_data = XTSConnect(
apiKey = API_key,
secretKey = API_secret,
source = API_source,
root = API_root
)
response_marketdata_login = await xt_market_data.marketdata_login()
market_data_get_master = await xt_market_data.get_master(
exchangeSegmentList = [xt_market_data.EXCHANGE_NSECM] # Works for BSECM as well.
)
print((cm_master_string_to_df(market_data_get_master['result'])))
if __name__ == "__main__":
asyncio.run(main())
""""""""""""""""""""""""""""""""""""""""""
FAQs
A Package designed for connecting to a Stock Broker that uses Symphony Fintech Solutions Pvt. Ltd for there API.
We found that xts-api-client 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.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.