@admin i'm not getting this difference why both status has same value
Latest posts made by Harshu0132
-
RE: Difference between status and orderstatusposted in Python SDK
-
RE: Incorrect Nifty 50 data from socketsposted in General Discussion
@pratikpopat92 @admin Any update on this? Close value of Nifty and Bank nifty today also was not proper.
{
subscriptionMode: 3,
exchangeType: 1,
token: '99926000'
sequenceNumber: 0,
exchangeTimeStamp: '3/13/2023, 3:31:25 PM',
LTP: '17,154.3',
LTQ: '0',
averagePrice: '0',
volume: '0',
totalBuyQuantity: '0',
totalSellQuantity: '0',
open: '17,421.9',
high: '17,529.9',
low: '17,113.45',
previousClose: '17,589.6',
lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
openIntrest: '0',
upperCircuitLimit: '0',
lowerCircuitLimit: '0',
high_52_week: '0',
low_52_week: '0',
}{
subscriptionMode: 3,
exchangeType: 1,
token: '99926009',
sequenceNumber: 0,
exchangeTimeStamp: '3/13/2023, 3:31:23 PM',
LTP: '39,564.7',
LTQ: '0',
averagePrice: '0',
volume: '0',
totalBuyQuantity: '0',
totalSellQuantity: '0',
open: '40,356.1',
high: '40,690.05',
low: '39,454.6',
previousClose: '41,577.1',
lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
openIntrest: '0',
upperCircuitLimit: '0',
lowerCircuitLimit: '0',
high_52_week: '0',
low_52_week: '0',}
-
Incorrect Nifty 50 data from socketsposted in General Discussion
Hello,
I have subscribed to websocket 2.0 and converting data from binary using nodejs buffer library, so far data is appropriate but for nifty 50 index, data (open,high,low) is not proper, and 52 week low for all instruments is 0, attaching decrypted data for reference, (ignore market depth) please check.{
subscriptionMode: 3,
exchangeType: 1,
token: '26000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
sequenceNumber: 9622957,
exchangeTimeStamp: '06/02/2023, 13:48:37',
LTP: '17,751.4',
LTQ: '0',
averagePrice: '0',
volume: '0',
totalBuyQuantity: '0',
totalSellQuantity: '0',
open: '16,798.05',
high: '17,187.1',
low: '16,747.7',
previousClose: '17,854.05',
lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
openIntrest: '9,81,35,450',
upperCircuitLimit: '0',
lowerCircuitLimit: '0',
high_52_week: '17,642.15',
low_52_week: '0',
marketDepth: [
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 1, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' },
{ flag: 0, quantity: '0', price: '0', ordersNo: '0' }
]
} -
RE: Getting Error AB1050posted in Bugs
@sauronx After installing library from npm, make changes in lib > smart-api.js > line 148 there is a function "self.generateSession" and in function call "smart_api.generateSession("CLIENT_CODE", "PASSWORD")" pass totp here.
-
RE: About TOTPposted in C#/.Net SDK
@Mr-Depp Hi Depp, why don't you make changes in the library and submit pr?
-
RE: getLtp returning AB1018 errorposted in NodeJS SDK
@Mahesh Hi Mahesh, it seems you are passing wrong token, I guess you are asking for this.
{
"token": "245263",
"symbol": "NATURALGAS22OCTFUT",
"name": "NATURALGAS",
"expiry": "26OCT2022",
"strike": "0.000000",
"lotsize": "1250",
"instrumenttype": "FUTCOM",
"exch_seg": "MCX",
"tick_size": "10.000000"
} -
RE: Getting Error AB1050posted in Bugs
@sauronx
You are not passing totp, I guess they haven't updated their library to accept totp in constructor. -
CORS errorposted in General Discussion
Hello,
I am sending request from react app to socket endpoint, there is an issue of CORS, can anyone help what is the workaround or is there any other way to connect to socket from javascript? -
Market Depth Dataposted in Bugs
Hello @admin
I am getting data from WebSockets but market depth info viz, best 5 bids/asks are missing, where to find them?
