i am trying to make a script that fetch data from nepse tms api using python.

almost done but the only problem that i am stuck is generating **Host-Session-Id** headers

base64 decoding gives **MTI=-8adedd0d-a2ef-4f9e-b68b-80d3851adc34**

now all i have to do is get this value which i don’t know how

​

https://preview.redd.it/wd5e8rx23cx71.png?width=687&format=png&auto=webp&s=cda7ddf269b1adba76a31a2468d65e074256bdb0

More at: r/NepalStock by Remarkable_League_25

2 comments
  1. You will need to convert the `suid` from local storage to Base64-encoded ASCII string to get the value for `Host-Session-Id`.

    In JavaScript, you can do that with a single line of code.

    `btoa(localStorage.getItem(‘suid’));`

Leave a Reply

Your email address will not be published.


You May Also Like

Nepal Vs India on Stock Exchange. Memetainment.

Nepal Vs India on Stock Exchange. Memetainment. More at: r/NepalStock by duck_student

Need of another Stock Exchange in Nepal and its relevance?

SEBON made it public that it was speeding up the process of…

what’s the news about NTC ?? Technically or fundamentally??

Its share value is rising continually since a week or two. Even…

Daily Discussion Thread (Monday – Jan 03, 2022)

Use this post to discuss what to buy/sell/trade/avoid/watch today and in the…

Daily Discussion Thread (Tuesday – Aug 10, 2021)

Use this post to discuss what to buy/sell/trade/avoid/watch today and in the…