Need some help please. I’m kinda stuck.
I’m trying to execute the following series of actions in an orderly fashion.
When current user clicks the ‘SELL’ button, the following occurs. All these actions need to happen at the click of the ‘SELL’ button.
A fresh timestamp gets generated using the following command:
TimeStamp = Current date/time:extract UNIX
Concatenate the following two strings together (note String 2 is the TimeStamp from step 1):
String 1 = ‘symbol=VETUSDT&side=SELL&type=MARKET&quantity=1&recvWindow=60000000×tamp=’
String 2 = TimeStamp
String 3 = String 1 + String 2
Generate a SHA-256 encryption of the following two items:
Item 1 = ‘symbol=VETUSDT&side=SELL&type=MARKET&quantity=1&recvWindow=60000000×tamp=TimeStamp’ (or String 3 from above)
Item 2 = ‘NhqPtmdSJYdKjVHjA7PZj4Mge3R5YNiP1e3UZjInClVN65XAbvqqM6A7H5fATj0j’ (This is the Static Secret Key)
Output = SHA-256 Encryption of (Item 1, Item 2)
*** For this, I use a plugin called ‘Base64, Hash & HMAC Encryptor’
Perform an API Call (*** For this, I use the API Connector) and pass in the TimeStamp and Output from Step 3:
The problem is that all these actions run at the same time ‘apparently’ and I need them to run one after the other in an orderly fashion.
API Documentation for Binance:
Really appreciate any help on this. Thanks!