Open joelmm1 opened 7 years ago
so, with reference to the above response... a call stake of 10.00 for EUR/USD is api.buy(10, 1, "turbo", "call")
a put stake of 4.11 on GBPJPY is api.buy(4.11, 3, "turbo", "put")
the actives number (1 and 3 above) can be seen in API constants constants.py
After you use the above commands, a websocket (wss) message is created and sent. To identify how it is made up you need to follow the code. For example...api.buy(10, 1, "turbo", "call") will send the following wss note: nextCandleCloseTime and PlaceStakeTimeNextCandleOpenMinus1Sec will be numbers relating to a time eg. 1499369340 = time in milliseconds from epoch / 1000 = time in seconds (there are 1000 milliseconds in a second)
{"msg": {"price": 10,"act": 1,"exp": nextCandleCloseTime,"type": "turbo","direction": "call","time": PlaceStakeTimeNextCandleOpenMinus1Sec}, "name": "buyV2"});
How can I call EUR/USD with an amount of exactly $10.