Please create a demo of trade API in youtube for simple tasks. After following the API documentation, I am getting Session Expired Message.
Also there are added complexity by adding encrypting and decrypting data multiple times. So a clear instruction would be very helpful.
Also there are added complexity by adding encrypting and decrypting data multiple times. So a clear instruction would be very helpful.
For the issue mentioned by you, please make sure you've logged in to the Swing mobile app or Swing Web before using the API. To be able to use the Swing API, you'll need to login to Swing (mobile or web) every trading day morning. Every morning the active sessions get invalidated from our backend partner. So, though your token will not change, you'll need to login to Swing every morning to be able to use the API. We are working on a solution where that should not be necessary. For now, we'll add that to the API document too.
Please also make sure not to login to any of our other platforms (Sine, Nest Trader etc) when using Swing.
We have explained encryption-decryption in our API documentation. Kindly let us know the point that is causing confusion and we'll look into simplifying it.