Code Monkey home page Code Monkey logo

iqoptionapi's Introduction

Windows Linux Docker Kubernetes Ansible Prometheus Telegraf Grafana InfluxDB Clickhouse Oracle Postgresql Jmeter Taurus Python Git Teamcity Jenkins Markdown Visual Studio Code Codewars

Statistics Languages

iqoptionapi's People

Contributors

alihammoud avatar freenetwork avatar gobbluth avatar jacekv avatar n1nj4z33 avatar perryawesome avatar ubaidsworld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iqoptionapi's Issues

expiration time

Does anyone got the expiration_time for the assets?
Most of them has at least 1min to 5min for a % return, and 6min to 36min (sliced in 15min).
But some are different.

And another question. How can we get % return BEFORE the order?

Getting the result data of trades.

Hi,

I don't have the time to fork and manually make a pull request so keep this bumped.
I'll be making a couple pull requests on the weekend which add various functionalities to the API.

In order to receive the status of trades alongside the result...

  1. Add the following code to on line 50 inside the 'iqoptionapi/ws/client.py' file:
if message["name"] == "listInfoData":
    listinfodata = lambda: None
    listinfodata.__dict__ = message["msg"][0]
    self.api.listinfodata.add_listinfodata(listinfodata)
  1. Create a new class in 'iqoptionapi/ws/objects' called 'listinfodata.py' and add the following code:
"""Module for IQ Option Candles websocket object."""
import json

from collections import OrderedDict

from iqoptionapi.ws.objects.base import Base


class ListInfoData(Base):
    def __init__(self):
        super(ListInfoData, self).__init__()
        self.__name = "listInfoData"
        self.__listinfodata_list = OrderedDict()

    @property
    def listinfodata_list(self):
        """Property to get listinfodata list.

        :returns: The list of listinfodata.
        """
        return self.__listinfodata_list

    @listinfodata_list.setter
    def listinfodata_list(self, listinfodata_list):
        """Method to set listinfodata list."""
        self.__listinfodata_list = listinfodata_list

    @property
    def current_listinfodata(self):
        """Method to get current iteminfodata item.

         :returns: The object of listinfodata.
         """
        return self.listinfodata_list[next(reversed(self.listinfodata_list))]

    def get_listinfodata(self, id):
        """Method to get iteminfodata item.

         :returns: The object of listinfodata.
         """
        return self.listinfodata_list[id]

    def add_listinfodata(self, new_listinfodata):
        """Method to add listinfodata."""
        #if new_listinfodata.id not in self.listinfodata_list:
        self.listinfodata_list[new_listinfodata.id] = new_listinfodata
  1. Add the following code as an import inside the 'iqoptionapi/api.py' file.
from iqoptionapi.ws.objects.listinfodata import ListInfoData
  1. Add the following code on line 46 inside the 'iqoptionapi/api.py' file.
listinfodata = ListInfoData()

Once done, you can use the new function by doing the following format, i.e. You can give the result by using the 'win' variable which returns either 'equal' (if the trade is ongoing or a draw), 'win' (if the trade was a win), or 'loose' (if the trade was a loss)

self.api.listinfodata.current_listinfodata.win

or

self.api.listinfodata.get_listinfodata(foo)

For more information on what you can actually get, you can use this JSON data that I've extracted myself while testing.

{"name":"listInfoData","msg":[{"amount":1000000,"id":2095724656,"refund":0,"currency":"USD","currency_char":"$","active_id":1,"active":"EURUSD","value":1.07736,"exp_value":1077360,"dir":"call","created":1489706346,"expired":1489706400,"type_name":"turbo","type":"front.TU","profit":100,"profit_amount":1,"win_amount":1.74,"loose_amount":0,"sum":1,"win":"equal","now":1489706346,"user_id":0,"game_state":0,"profit_income":174,"profit_return":0,"option_type_id":3,"site_id":1,"is_demo":false,"user_balance_id":0,"client_platform_id":9,"re_track":"null","params":null}]}

WebSocketConnectionClosedException - After using PyInstaller

I wrote a simple app to print the balance and server times:

from iqapi.api import IQOptionAPI
from time import sleep

_author_ = 'wombat'

class Solver:
    def demo(self):
        api = IQOptionAPI("iqoption.com", "username", "password")
        api.connect()

        while 0 == 0:
            sleep(1)
            print(api.profile.balance)
            print(str(api.timesync.expiration_datetime))
            print(str(api.timesync.server_datetime))

Solver().demo()

If I compile and execute the code using:

C:\Users\User1\Python-3.5.2\Scripts\python.exe "D:/pythonsamples/Solver.py"

It will work. But, if I execute PyInstaller

$ pyinstaller --onefile --paths="C:\Users\User1\Python-3.5.2\Lib" --paths="C:\Users\User1\Python-3.5.2\Lib\site-packages" Solver.py

to create an executable file of this code, then I get the following error:

Traceback (most recent call last):
  File "Solver.py", line 19, in <module>
  File "Solver.py", line 11, in demo
  File "iqapi\api.py", line 288, in connect
  File "iqapi\ws\chanels\ssid.py", line 18, in __call__
  File "iqapi\ws\chanels\base.py", line 25, in send_websocket_request
  File "iqapi\api.py", line 125, in send_websocket_request
  File "site-packages\websocket\_app.py", line 116, in send
websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.

Any idea why is this happening?

Connection is already closed

I got error message
" File "C:\Python27\lib\site-packages\websocket_app.py", line 120, in send
"Connection is already closed.")
WebSocketConnectionClosedException: Connection is already closed."
how to fix it?

User Guide

Hello n1nj4z33,
Can you give me user guide, or documentation IqOption API.
i am not expert in python.. i want convert it in .Net
Please help me.

Regards.

Get indicators

Hello @n1nj4z33,

The API is very good thanks.

Is there a possibility to get indicators as you get the candles?

I tried to calculate few of them by my self using the candles information, but I'm no getting the same numbers.

Thanks in advance.

best

Is possible to get chart data?

Hi,

i am trying to find out if is possible to subscribe to new chart data. I have found subcribe method, but it wants some channel name and i am not sure what should i put there.

Is is event possible with this library to obtain fresh chart data?

Thanks for help

API buy problem

Hy!

I want to use api with my pattern for testing in demo account, but it only buys when no candle check runs in pattern. It says it buy it, but not. I can buy while no check runs (only "if self.candles" in pattern)
Anybody have an idea about it?

How to get current call/put ratio?

Hello, I find the way to get current call and put ratio from Treaders, iqoptionapi is already implement any function to do this yet ?

screen shot 2560-04-24 at 5 36 49 pm

How to get changebalance working?

Hi all,

I do not understand why the method api.changebalance() is not working for me. Could you please give me a hint what I am doing wrong?

My small test shall connect to my IQ account print the real account balance change balance to practice and print then there the balance.

But I only get the current selected balance from the IQ Option application.

I have tried both approaches with but without any success.

 # To enable the real account:
api.changebalance(5955150)
# or
api.changebalance('real')

# To enable the practive account
api.changebalance('practice')
# or
api.changebalance(12074331)

This is the code. Does anyone see the mistakes I am doing?

from iqoptionapi.api import IQOptionAPI
import time

def accountBalance():
    api = None
    api_info = None
    balance_r = 0
    balance_p = 0
    
    while True:
        if api is None:
            print "Connecting to IQ Option Broker"
            api = IQOptionAPI("iqoption.com","user", "pw")
            api_info = api.connect()
             # To enable the real account:
            api.changebalance(5955150)
#             api.changebalance('practice')
            #api.changebalance('real')
            if api != None:
                print "Connection Established"
        else:
            # To enable the real account:
            #api.changebalance('real')
#             api.changebalance(5955150)
            balance_r = api.profile.balance        
            
            print balance_r
            # To enable the practice account:
#             api.changebalance(12074331)
            #api.changebalance('practice')
            balance_p = api.profile.balance
            print balance_p
            
            api.changebalance(12074331)
            balance_p = api.profile.balance
            print balance_p 
            return
    
accountBalance()

BR
Burny

Does this still work?

Hi, I am new to Python but have programmed in other languages. I tried the following code in a new document run in TextWrangler - using this code:-

from iqoptionapi.api import IQOptionAPI
api = IQOptionAPI("iqoption.com", "username", "password")
api.connect()
balance = api.profile.balance
print balance
api.setactives([1, 2])
api.getcandles(1,1)
data = api.candles.candles_data
print api.candles.candles_data

It runs okay but I get None from both print commands?
But I notice that if I leave username as "username" and password as "password", it still runs okay, so is there a way to determine if it actually did connect correctly?

I installed as per the instructions, but my code is a new file created on my desktop - does that matter? Does the code need to be within the installed files path?

I obviously changed the username to my email, and password to my password. Are HTML special characters handled in passwords?

I tried opening an account at IqOption using a password without special characters, but the same result.
I then tried testing the wss address of wss://iqoption.com/echo/websocket at the site - https://www.websocket.org/echo.html, and that seems to connect via the site.

I am trying to understand how this API works. It is a hobby - learning to program - I have made practical programs in Java to trade on the iqOption platform, but the price stream I used is not good enough and results in loses.
Ideally I want to understand how the HTTP and WSS connections work in terms of command structure, but as I cannot get this simple program to work it seems a long long way off.

Can anyone please confirm whether this API still works. I am wondering if IqOption moved their api?
And if it does work, can you see what I have done wrong?

candles: api.getcandles is not working

I have this code with the iqoption api:

from iqoptionapi.api import IQOptionAPI
api = IQOptionAPI("iqoption.com", "My user", "My pass")
api.connect()
balance = api.profile.balance
print balance
api.setactives([1, 2])
candles = api.getcandles(1,1)
print candles

all is working except the last two lines, candles always return None, not a list how i fix them?

Thanks.

How to make bot running always?

How to run my bot always? And make it able to receive signal to place order?

Now i have code to place buy order and it works but executes only 1 time when i run it in command shell.

Purchase Time

The IQPlatform has a countdown Purchase Time. Is there any way to retrieve this time from the API?

Multiple ACTIVES candle at same instance

Hi,

Below code snippet gets candles for first active.

api.getcandles(1, 1)
time.sleep(1)
data = api.candles.candles_data

  • How to get multiple active candles at single instance
  • How to get candle for perticular time stamp. or PAST time stamp.

Please suggest.

websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.

I am getting websocket error frequestnly. What is the solution? How to disconnect API?

Traceback (most recent call last):
File "D:\Users\vinayaka.d\Desktop\Python projects\iqoption.py", line 12, in
api.connect()
File "C:\Python34\lib\site-packages\iqoptionapi-0.5-py3.4.egg\iqoptionapi\api.py", line 288, in connect
self.ssid(ssid) # pylint: disable=not-callable
File "C:\Python34\lib\site-packages\iqoptionapi-0.5-py3.4.egg\iqoptionapi\ws\chanels\ssid.py", line 17, in call
self.send_websocket_request(self.name, ssid)
File "C:\Python34\lib\site-packages\iqoptionapi-0.5-py3.4.egg\iqoptionapi\ws\chanels\base.py", line 23, in send_websocket_request
return self.api.send_websocket_request(name, msg)
File "C:\Python34\lib\site-packages\iqoptionapi-0.5-py3.4.egg\iqoptionapi\api.py", line 123, in send_websocket_request
self.websocket.send(data)
File "C:\Python34\lib\site-packages\websocket_app.py", line 118, in send
if not self.sock or self.sock.send(data, opcode) == 0:
File "C:\Python34\lib\site-packages\websocket_core.py", line 234, in send
return self.send_frame(frame)
File "C:\Python34\lib\site-packages\websocket_core.py", line 259, in send_frame
l = self._send(data)
File "C:\Python34\lib\site-packages\websocket_core.py", line 423, in _send
return send(self.sock, data)
File "C:\Python34\lib\site-packages\websocket_socket.py", line 113, in send
raise WebSocketConnectionClosedException("socket is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.

Connect metatrader4 with IQ-Option

Please i want to connect metatrader4 with IQ-Option for built auto trading bot and profit from the awesome indicator and signals in metatrader4

please can help me how i can do this
how i can connect wss in mt4 to IQ
mt4 have a libe for wss or not ?? if not how i can add one to it
mt4 support python ?? if yes how i can merge this python api with mt4 expert

please if any one can give me some help and some information to be in the good way

@n1nj4z33 @fsnlarson @boskiv @freenetwork @PerryAwesome @lucianopinheiro @m10141 @NazirH @EVAZA @Niks005 @freeost @cz3kit @vinydl @leonardomutti @Aiacos @playsten4096 @CZ-DannyK @l9sheen @SonyPony @kanXuT @joelmm1 @MadOne199 @Shirokr @kiddystarnova @HubSpace2000 @frxncisjoseph @rafinha90 @genesiscrew @joelmm1 @Olascoaga @gocholo5 @engelkohle @boskiv @antoinejoerg @amsori @crypto-maniac @BremerBlizzard @j1and1 @SiliconDare @rimalroc @AllenUchiha @burny91 @santiagonn @0xAalaoui @Aiacos @shiundu @joebrassi

thanks you all

Proxy usage

Hi,

Can anybody tell me the format of proxy usage in below.

IQOptionAPI("iqoption.com", "user", "pwd",PROXY)

I tried below, but its not working.

IQOptionAPI("iqoption.com", "user", "pwd",{"http": "http://10.10.1.10:3128/"})

Modified code and added functionality

Hey everyone,

I added the project and modified the code. I am not sure if the author of the api is still taking care of it. I tried to do a pull request but nothing happened till now.

Feel free to use the code in my github repo.

How to get candles?

Hi, I'm trying to get the candles from a given timestamp to another of a certain asset. I achieved that by editing the candles.py script in the following way:

def __call__(self, active_id, duration, number):
    """Method to send message to candles websocket chanel.

    :param active_id: The active identifier.
    :param duration: The candle duration.
    """
    data = {"active_id": active_id,
            "duration": duration,
            "chunk_size": number,
            "from": self.api.timesync.server_timestamp - number,
            "till": self.api.timesync.server_timestamp }

    self.send_websocket_request(self.name, data)

number is the number of candles I want to obtain. It turns out that the maximum number of candles is 3600 with duration=1, 720 with duration=5. Is there a way I can arbitrarily increase the amount of data I want to save?

Thanks in advance!

How can i get the Profit % return of an active?

How can I get the profit % return of an active for different expiration time?
like profit return of EURUSD in 60sec turbo ---> 85%
profit return of USDJPY in 15min binary ---> 79%

Thanks

How to fetch active PAIR ?

Hello , i would like to know how to fetch the active PAIR instead of call them
because IQOption always change the active PAIR time to time so it would be nice for my need to load only active one
any hints or demo json please ?
thanks you

api.buy, api.getcandles and api.profile.balance produces WebSocketConnectionClosedException

I was trying to use the api and really i getting it, it works greatly but i have only one trouble, after some time of use api.getcandles or api.profile.balance or api.buy it is produced an exception in websocket

this is the exception:

File "C:\Python\lib\site-packages\websocket\_socket.py", line 113, in send
    raise WebSocketConnectionClosedException("socket is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed. 

I was trying to handle it with try-except and recovery the connection but i can't if i try to use the api.connect method after the exception looks like it is connected but if i use any function return the same exception, so how to reconnect the api after an exception like this

How to buy and Expiration time discussion

I have this code below which connects to the API and prints the balance in my account. However, I am unable to buy any stock can someone please help me with this. Also I would also like to discuss expiration times and how they can be used. If any one has full example code please feel free to attach.

Thanks

`import time
from iqoptionapi.api import IQOptionAPI

api = IQOptionAPI("iqoption.com", "myusername", "mypassword")

api.connect()
time.sleep(1)

balance = api.profile.balance
time.sleep(1)
print (balance)

api.setactives([1, 2])
time.sleep(1)

api.getcandles(1,1)
time.sleep(1)
data = api.candles.candles_data
print (api.candles.candles_data)

api.buy(10, 3, "binary", "call")
print (balance)`

Can iqoption find it suspecious?

Do we need send the requests to the iqoption exactly same as of its website or app?
Do they suspect the activity done by api?
ex performing buy every minute. Wiill they suspend the account

Unable to get API working

Hi,
I can connect to the API but buying is not working, is the simulation account is working with the API ?

Thanks

Project

Hello,

Are you able to do a small paid project in Python for IQOption? how can I contact you?

Thanks,

API improvement requests

Hi @n1nj4z33 ,

During the work with your api if have found some points which could be improved.

I do noticed that in your buy method it is not possible to pass the expiration time (1 min, 2 min, 3 min, ...) as a parameter, instead you set the expiration time as default from the current timestamp. Could you please update this? So it would be possible to work also with other expiration times. See modification proposal in code snap.

def __call__(self, price, active, option, **exp_time,** direction):`
        """Method to send message to buyv2 websocket chanel.
        :param price: The buying price.
        :param active: The buying active.
        :param option: The buying option.
        :param direction: The buying direction.
        """
        data = {"price": price,
                "act": active,
                **"exp": exp_time**
                "type": option,
                "direction": direction,
                "time": self.api.timesync.server_timestamp
               }

        self.send_websocket_request(self.name, data)`

How am I able to check the result of a trade: either win or lose. Which class do I need to use, I didnt find anything appropriate.

Next important thing would be to get a method that give the current percentage of profit from an asset. E.G. getProfit(constants.actives[1]) => output 70 (in percent)

Would be great to get some feedback where I can find these feature in your current api and if not feel free to implement them ;)

BR
Burny

does this still work and how

does still work and how do we use this I don't even know how to operate this program can someone help me with this and how does this bot work

thank you for helping

Buying Delay and Always need reconnect?

Buying delay is about 12 seconds it can be deadly for 1 min exp option.

Also when i run my script from command shell and it Buys option ok. But when i run Api connect separately and after run a script with separate buying - it no work.
So is there a way to login one time and then be connected and place orders quickly>? HELP Please.

Anyone know how to cancel a trade in the 3 second period?

Hi
I am trying to determine how to cancel a trade within the 3 seconds allowed. The buyback doesn't seem to work?
I assume that the id within the buyComplete message is used, but cannot make it work.

can anyone help?

Here I give an example of the returrn of the websocket after a call placed on active 4...

{"name":"buyComplete","msg":{"isSuccessful":true,"message":["Successful"],"result":{"refund_value":0,"price":4,"exp":1499368560,"created":1499368500,"time_rate":1499368500,"type":"turbo","act":4,"direction":"call","exp_value":1141990,"value":1.14199,"profit_income":180,"profit_return":0,"id":8734778224,"robot_id":null,"request_id":null,"client_platform_id":9},"codeList":[0]}}

Buy does not work

It seems like the buy API doesn't work for me. Is anyone having the same issue? Is the problem currently being fixed?

How to use them

Hey, can you leave a short comment how to use this API?
I want to add them to my EA. Thanks

Buy not working

Buy is working just sometimes, maybe 1 in 50 times.

Can someone help me?

Here's a sample of my code:

api.connect()
time.sleep(10)
api.setactives([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 168, 212, 219, 220])
balance = api.profile.balance
print balance
time.sleep(10)
api.subscribe('tradersPulse')
api.buy(1, 1, "turbo", "call")
time.sleep(10)

IqOption API Websocket channel message format

I want to connect to IQ Option API through java, could someone please provide the format of requests.

Getting {"name":"timeSync","msg":1497719365209} when connected to socket.

{
"name" : "candles",
"msg" : "{
"active_id": 1,
"duration": 1000,
"chunk_size": 25,
"from": 1497719363209,
"till": 1497719365209
}"
}
tried this way to subscribe to the channel, but no luck.

what should I pass else (ex: login tokens)? Or does the format is incorrect

Guide For Beginners Very Important - Send Socket before connecting

GUys please use the below code for sending socket and you will get your balance info, candlessss
THanks to me of course hahaha

Please get your cookie from google chrome . filter iqoption then look for ssid , copy the content and replace below

import urllib3
import time
from iqoptionapi.api import IQOptionAPI
from websocket import create_connection
import json
ws = create_connection("wss://iqoption.com/echo/{randomnumber}/{randomnumber}/websocket")
print "Sending 'Cookie'..."
ws.send("{'msg': 'MY COOKIE ID', 'name': 'ssid'}")
print "Sent"
print "Reeiving..."
result = ws.recv()
print "Received '%s'" % result

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
api = IQOptionAPI("iqoption.com", "email_address", "Password")
api.connect()
time.sleep(5)
balance = api.profile.balance
time.sleep(5)
print balance
api.setactives([1, 2])
time.sleep(5)
api.getcandles(1,1)
time.sleep(5)
data = api.candles.candles_data
print api.candles.candles_data


Output should be

Sending 'Cookie...
Sent
Reeiving...
Received 'o'
30949.73
[[1506790640, 1181630, 1181630, 1181630, 1181630], [1506790641, 1181630, 1181630, 1181630, 1181630], [1506790642, 1181630, 1181630, 1181630, 1181630], [1506790643, 1181630, 0, 1181630, 1181630]]

price has changed

Hello,

Sometimes, the buyV2 request fails and I get this error from the WS:

{"name":"buyComplete","msg":{"isSuccessful":false,"message":["We're sorry, but the price has changed. Please try again."],"result":{"request_id":null}}}

Any ideas? :)

How to get bid/ask value ?

Hi,
I see in logs when try changebalance, but don't know how to get it again ?

2017-04-28 21:18:37:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09013,"ask":1.09015,"value":1.09014,"time":1493389118,"show_value":1.09014,"buy":1.09015,"sell":1.09013}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09014,"ask":1.09018,"value":1.09016,"time":1493389118,"show_value":1.09016,"buy":1.09018,"sell":1.09014}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09019,"value":1.09017,"time":1493389118,"show_value":1.09017,"buy":1.09019,"sell":1.09015}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09014,"ask":1.09017,"value":1.090155,"time":1493389118,"show_value":1.090155,"buy":1.09017,"sell":1.09014}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09017,"value":1.09016,"time":1493389118,"show_value":1.09016,"buy":1.09017,"sell":1.09015}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09014,"ask":1.09017,"value":1.090155,"time":1493389118,"show_value":1.090155,"buy":1.09017,"sell":1.09014}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09018,"value":1.090165,"time":1493389118,"show_value":1.090165,"buy":1.09018,"sell":1.09015}}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09018,"value":1.090165,"time":1493389118,"round":true,"show_value":1.090165,"buy":1.09018,"sell":1.09015}}
2017-04-28 21:18:38:DEBUG: {"name":"tradersPulse","msg":{"1":63}}
2017-04-28 21:18:38:DEBUG: {"name":"timeSync","msg":1493389118240}
2017-04-28 21:18:38:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09019,"value":1.09017,"time":1493389119,"show_value":1.09017,"buy":1.09019,"sell":1.09015}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09019,"value":1.09017,"time":1493389119,"show_value":1.09017,"buy":1.09019,"sell":1.09015}}
2017-04-28 21:18:39:DEBUG: {"name":"tradersPulse","msg":{"1":64}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09019,"value":1.09017,"time":1493389119,"round":true,"show_value":1.09017,"buy":1.09019,"sell":1.09015}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09017,"ask":1.09019,"value":1.09018,"time":1493389120,"show_value":1.09018,"buy":1.09019,"sell":1.09017}}
s2017-04-28 21:18:39:DEBUG: {"name":"timeSync","msg":1493389119252}
2017-04-28 21:18:39:DEBUG: {"name":"feedTopTraders2","msg":{"exp_time":1493389080,"feed":{"POST_USSR":{"1":[{"user_id":10395050,"active_id":1,"win_amount":0.5,"option_ids":[{"value":1.090175,"created":1493389107,"direction":"put","amount":1}],"user_name":"mrinmay s.","active_name":"EURUSD","flag":"IN"}]},"NOT_POST_USSR":{"1":[{"user_id":10395050,"active_id":1,"win_amount":0.5,"option_ids":[{"value":1.090175,"created":1493389107,"direction":"put","amount":1}],"user_name":"mrinmay s.","active_name":"EURUSD","flag":"IN"}]}}}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09019,"ask":1.09021,"value":1.0902,"time":1493389120,"show_value":1.0902,"buy":1.09021,"sell":1.09019}}


2017-04-28 21:18:39:DEBUG: https://iqoption.com/api/profile/changebalance
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09019,"ask":1.09022,"value":1.090205,"time":1493389120,"show_value":1.090205,"buy":1.09022,"sell":1.09019}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09021,"ask":1.09023,"value":1.09022,"time":1493389120,"show_value":1.09022,"buy":1.09023,"sell":1.09021}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09024,"ask":1.09026,"value":1.09025,"time":1493389120,"show_value":1.09025,"buy":1.09026,"sell":1.09024}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09026,"ask":1.09028,"value":1.09027,"time":1493389120,"show_value":1.09027,"buy":1.09028,"sell":1.09026}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09027,"ask":1.09029,"value":1.09028,"time":1493389120,"show_value":1.09028,"buy":1.09029,"sell":1.09027}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09028,"ask":1.09031,"value":1.090295,"time":1493389120,"show_value":1.090295,"buy":1.09031,"sell":1.09028}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0903,"ask":1.09032,"value":1.09031,"time":1493389120,"show_value":1.09031,"buy":1.09032,"sell":1.0903}}
2017-04-28 21:18:39:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09031,"ask":1.09033,"value":1.09032,"time":1493389120,"show_value":1.09032,"buy":1.09033,"sell":1.09031}}
2017-04-28 21:18:39:DEBUG: <Response [200]>
2017-04-28 21:18:39:DEBUG: {"isSuccessful":false,"message":"Balance not found","result":null}
2017-04-28 21:18:39:DEBUG: {'X-Content-Type-Options': 'nosniff', 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'Set-Cookie': '__uat=c9c64e071d2853bc7906c017a231ad1cc46ab; path=/', 'Strict-Transport-Security': 'max-age=15555600', 'Server': 'nginx', 'Connection': 'keep-alive', 'X-Front-Host': 'fe-api-04', 'Access-Control-Allow-Credentials': 'true', 'Date': 'Fri, 28 Apr 2017 14:18:39 GMT', 'Access-Control-Allow-Origin': 'https://billing.iqoption.com', 'Access-Control-Allow-Methods': 'GET, POST, OPTIONS', 'Content-Type': 'application/json; charset=UTF-8'}
2017-04-28 21:18:39:DEBUG: <RequestsCookieJar[<Cookie __uat=c9c64e071d2853bc7906c017a231ad1cc46ab630 for iqoption.com/>]>
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09031,"ask":1.09033,"value":1.09032,"time":1493389120,"show_value":1.09032,"buy":1.09033,"sell":1.09031}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09031,"ask":1.09033,"value":1.09032,"time":1493389120,"show_value":1.09032,"buy":1.09033,"sell":1.09031}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09029,"ask":1.09031,"value":1.0903,"time":1493389120,"show_value":1.0903,"buy":1.09031,"sell":1.09029}}
2017-04-28 21:18:40:DEBUG: {"name":"tradersPulse","msg":{"1":63}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09029,"ask":1.09031,"value":1.0903,"time":1493389120,"round":true,"show_value":1.0903,"buy":1.09031,"sell":1.09029}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09028,"ask":1.09031,"value":1.090295,"time":1493389121,"show_value":1.090295,"buy":1.09031,"sell":1.09028}}
2017-04-28 21:18:40:DEBUG: {"name":"timeSync","msg":1493389120271}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09026,"ask":1.09028,"value":1.09027,"time":1493389121,"show_value":1.09027,"buy":1.09028,"sell":1.09026}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09025,"ask":1.09028,"value":1.090265,"time":1493389121,"show_value":1.090265,"buy":1.09028,"sell":1.09025}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09025,"ask":1.09028,"value":1.090265,"time":1493389121,"show_value":1.090265,"buy":1.09028,"sell":1.09025}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09025,"ask":1.09027,"value":1.09026,"time":1493389121,"show_value":1.09026,"buy":1.09027,"sell":1.09025}}
2017-04-28 21:18:40:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09024,"ask":1.09027,"value":1.090255,"time":1493389121,"show_value":1.090255,"buy":1.09027,"sell":1.09024}}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09024,"ask":1.09026,"value":1.09025,"time":1493389121,"show_value":1.09025,"buy":1.09026,"sell":1.09024}}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09022,"ask":1.09025,"value":1.090235,"time":1493389121,"show_value":1.090235,"buy":1.09025,"sell":1.09022}}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09022,"ask":1.09024,"value":1.09023,"time":1493389121,"show_value":1.09023,"buy":1.09024,"sell":1.09022}}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09021,"ask":1.09023,"value":1.09022,"time":1493389121,"show_value":1.09022,"buy":1.09023,"sell":1.09021}}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0902,"ask":1.09022,"value":1.09021,"time":1493389121,"show_value":1.09021,"buy":1.09022,"sell":1.0902}}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0902,"ask":1.09022,"value":1.09021,"time":1493389121,"round":true,"show_value":1.09021,"buy":1.09022,"sell":1.0902}}
2017-04-28 21:18:41:DEBUG: {"name":"timeSync","msg":1493389121283}
2017-04-28 21:18:41:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0902,"ask":1.09022,"value":1.09021,"time":1493389122,"show_value":1.09021,"buy":1.09022,"sell":1.0902}}
2017-04-28 21:18:42:DEBUG: {"name":"tradersPulse","msg":{"1":64}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09017,"ask":1.0902,"value":1.090185,"time":1493389122,"show_value":1.090185,"buy":1.0902,"sell":1.09017}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09017,"ask":1.0902,"value":1.090185,"time":1493389122,"round":true,"show_value":1.090185,"buy":1.0902,"sell":1.09017}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09016,"ask":1.09019,"value":1.090175,"time":1493389123,"show_value":1.090175,"buy":1.09019,"sell":1.09016}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09016,"ask":1.09018,"value":1.09017,"time":1493389123,"show_value":1.09017,"buy":1.09018,"sell":1.09016}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09015,"ask":1.09018,"value":1.090165,"time":1493389123,"show_value":1.090165,"buy":1.09018,"sell":1.09015}}
2017-04-28 21:18:42:DEBUG: {"name":"timeSync","msg":1493389122294}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09014,"ask":1.09017,"value":1.090155,"time":1493389123,"show_value":1.090155,"buy":1.09017,"sell":1.09014}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09013,"ask":1.09015,"value":1.09014,"time":1493389123,"show_value":1.09014,"buy":1.09015,"sell":1.09013}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09011,"ask":1.09013,"value":1.09012,"time":1493389123,"show_value":1.09012,"buy":1.09013,"sell":1.09011}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389123,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:42:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389123,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:43:DEBUG: {"name":"tradersPulse","msg":{"1":63}}
2017-04-28 21:18:43:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389123,"round":true,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
s2017-04-28 21:18:43:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389124,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:43:DEBUG: {"name":"timeSync","msg":1493389123304}


2017-04-28 21:18:43:DEBUG: https://iqoption.com/api/profile/changebalance
2017-04-28 21:18:43:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389124,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:44:DEBUG: <Response [200]>
2017-04-28 21:18:44:DEBUG: {"isSuccessful":false,"message":"Balance not found","result":null}
2017-04-28 21:18:44:DEBUG: {'X-Content-Type-Options': 'nosniff', 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'Set-Cookie': '__uat=c9c64e071d2853bc7906c017a231ad1cc46ab630; path=/', 'Strict-Transport-Security': 'max-age=15555600', 'Server': 'nginx', 'Connection': 'keep-alive', 'X-Front-Host': 'fe-api-05', 'Access-Control-Allow-Credentials': 'true', 'Date': 'Fri, 28 Apr 2017 14:18:43 GMT', 'Access-Control-Allow-Origin': 'https://billing.iqoption.com', 'Access-Control-Allow-Methods': 'GET, POST, OPTIONS', 'Content-Type': 'application/json; charset=UTF-8'}
2017-04-28 21:18:44:DEBUG: <RequestsCookieJar[<Cookie __uat=c9c64e071d2853bc7906c017a231ad1cc46ab630 for iqoption.com/>]>
Press c or p or l: 2017-04-28 21:18:44:DEBUG: {"name":"tournament","msg":{"type":"users_count","id":940,"count":68,"rebuy_count":0,"win_amount":500,"winners_table":{"1":150,"2":125,"3":100,"4":75,"5":50}}}
2017-04-28 21:18:44:DEBUG: {"name":"tradersPulse","msg":{"1":64}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389124,"round":true,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389125,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09009,"ask":1.09013,"value":1.09011,"time":1493389125,"show_value":1.09011,"buy":1.09013,"sell":1.09009}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389125,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:44:DEBUG: {"name":"timeSync","msg":1493389124316}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09012,"ask":1.09014,"value":1.09013,"time":1493389125,"show_value":1.09013,"buy":1.09014,"sell":1.09012}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09011,"ask":1.09014,"value":1.090125,"time":1493389125,"show_value":1.090125,"buy":1.09014,"sell":1.09011}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09012,"ask":1.09014,"value":1.09013,"time":1493389125,"show_value":1.09013,"buy":1.09014,"sell":1.09012}}
2017-04-28 21:18:44:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389125,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:45:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389125,"round":true,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:45:DEBUG: {"name":"timeSync","msg":1493389125428}
2017-04-28 21:18:46:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09009,"ask":1.09013,"value":1.09011,"time":1493389126,"show_value":1.09011,"buy":1.09013,"sell":1.09009}}
2017-04-28 21:18:46:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389126,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:46:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09014,"value":1.09012,"time":1493389126,"show_value":1.09012,"buy":1.09014,"sell":1.0901}}
2017-04-28 21:18:46:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09014,"value":1.09012,"time":1493389126,"round":true,"show_value":1.09012,"buy":1.09014,"sell":1.0901}}
2017-04-28 21:18:46:DEBUG: {"name":"timeSync","msg":1493389126493}
2017-04-28 21:18:46:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.0901,"ask":1.09013,"value":1.090115,"time":1493389127,"show_value":1.090115,"buy":1.09013,"sell":1.0901}}
2017-04-28 21:18:47:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09008,"ask":1.09011,"value":1.090095,"time":1493389127,"show_value":1.090095,"buy":1.09011,"sell":1.09008}}
2017-04-28 21:18:47:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09008,"ask":1.09011,"value":1.090095,"time":1493389127,"show_value":1.090095,"buy":1.09011,"sell":1.09008}}
2017-04-28 21:18:47:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09008,"ask":1.09011,"value":1.090095,"time":1493389127,"round":true,"show_value":1.090095,"buy":1.09011,"sell":1.09008}}
2017-04-28 21:18:47:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09008,"ask":1.09011,"value":1.090095,"time":1493389128,"show_value":1.090095,"buy":1.09011,"sell":1.09008}}
2017-04-28 21:18:47:DEBUG: {"name":"timeSync","msg":1493389127507}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09007,"ask":1.0901,"value":1.090085,"time":1493389128,"show_value":1.090085,"buy":1.0901,"sell":1.09007}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09005,"ask":1.09008,"value":1.090065,"time":1493389128,"show_value":1.090065,"buy":1.09008,"sell":1.09005}}
2017-04-28 21:18:48:DEBUG: {"name":"tradersPulse","msg":{"1":65}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09005,"ask":1.09008,"value":1.090065,"time":1493389128,"round":true,"show_value":1.090065,"buy":1.09008,"sell":1.09005}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09004,"ask":1.09008,"value":1.09006,"time":1493389129,"show_value":1.09006,"buy":1.09008,"sell":1.09004}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09004,"ask":1.09007,"value":1.090055,"time":1493389129,"show_value":1.090055,"buy":1.09007,"sell":1.09004}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09002,"ask":1.09004,"value":1.09003,"time":1493389129,"show_value":1.09003,"buy":1.09004,"sell":1.09002}}
2017-04-28 21:18:48:DEBUG: {"name":"feedTopTraders2","msg":{"exp_time":1493389080,"feed":{"POST_USSR":{"1":[{"user_id":10714534,"active_id":1,"win_amount":41.72,"option_ids":[{"value":1.089555,"created":1493388923,"direction":"call","amount":16.32},{"value":1.089555,"created":1493388925,"direction":"call","amount":16.32}],"user_name":"ana maria p.","active_name":"EURUSD","flag":"IT"}]},"NOT_POST_USSR":{"1":[{"user_id":10714534,"active_id":1,"win_amount":41.72,"option_ids":[{"value":1.089555,"created":1493388923,"direction":"call","amount":16.32},{"value":1.089555,"created":1493388925,"direction":"call","amount":16.32}],"user_name":"ana maria p.","active_name":"EURUSD","flag":"IT"}]}}}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09002,"value":1.09001,"time":1493389129,"show_value":1.09001,"buy":1.09002,"sell":1.09}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09001,"value":1.09,"time":1493389129,"show_value":1.09,"buy":1.09001,"sell":1.08999}}
2017-04-28 21:18:48:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09001,"value":1.09,"time":1493389129,"show_value":1.09,"buy":1.09001,"sell":1.08999}}
2017-04-28 21:18:48:DEBUG: {"name":"timeSync","msg":1493389128518}
2017-04-28 21:18:49:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09001,"value":1.09,"time":1493389129,"round":true,"show_value":1.09,"buy":1.09001,"sell":1.08999}}
2017-04-28 21:18:49:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389130,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:49:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389130,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:18:49:DEBUG: {"name":"timeSync","msg":1493389129553}
2017-04-28 21:18:50:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389130,"round":true,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:18:50:DEBUG: {"name":"timeSync","msg":1493389130564}
2017-04-28 21:18:50:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389131,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:18:51:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389131,"round":true,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:18:51:DEBUG: {"name":"feedTopTraders2","msg":{"exp_time":1493389080,"feed":{"POST_USSR":{"1":[{"user_id":16455162,"active_id":1,"win_amount":1.2,"option_ids":[{"value":1.08977,"created":1493388994,"direction":"put","amount":1},{"value":1.090225,"created":1493389115,"direction":"call","amount":1},{"value":1.090225,"created":1493389115,"direction":"call","amount":1}],"user_name":"Natthawat H.","active_name":"EURUSD","flag":"TH"}]},"NOT_POST_USSR":{"1":[{"user_id":16455162,"active_id":1,"win_amount":1.2,"option_ids":[{"value":1.08977,"created":1493388994,"direction":"put","amount":1},{"value":1.090225,"created":1493389115,"direction":"call","amount":1},{"value":1.090225,"created":1493389115,"direction":"call","amount":1}],"user_name":"Natthawat H.","active_name":"EURUSD","flag":"TH"}]}}}}
2017-04-28 21:18:51:DEBUG: {"name":"timeSync","msg":1493389131578}
2017-04-28 21:18:52:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389132,"round":true,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:18:52:DEBUG: {"name":"timeSync","msg":1493389132592}
2017-04-28 21:18:53:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389133,"round":true,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:18:53:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389134,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:53:DEBUG: {"name":"timeSync","msg":1493389133606}
2017-04-28 21:18:53:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09001,"value":1.09,"time":1493389134,"show_value":1.09,"buy":1.09001,"sell":1.08999}}
2017-04-28 21:18:54:DEBUG: {"name":"tradersPulse","msg":{"1":64}}
2017-04-28 21:18:54:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09001,"value":1.09,"time":1493389134,"round":true,"show_value":1.09,"buy":1.09001,"sell":1.08999}}
2017-04-28 21:18:54:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09001,"value":1.09,"time":1493389135,"show_value":1.09,"buy":1.09001,"sell":1.08999}}
2017-04-28 21:18:54:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389135,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:54:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389135,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:54:DEBUG: {"name":"timeSync","msg":1493389134618}
2017-04-28 21:18:55:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389135,"round":true,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:55:DEBUG: {"name":"feedTopTraders2","msg":{"exp_time":1493389080,"feed":{"POST_USSR":{"1":[{"user_id":7980633,"active_id":1,"win_amount":1.09,"option_ids":[{"value":1.09021,"created":1493389121,"direction":"put","amount":1}],"user_name":"Isaac T.","active_name":"EURUSD","flag":"CA"}]},"NOT_POST_USSR":{"1":[{"user_id":7980633,"active_id":1,"win_amount":1.09,"option_ids":[{"value":1.09021,"created":1493389121,"direction":"put","amount":1}],"user_name":"Isaac T.","active_name":"EURUSD","flag":"CA"}]}}}}
2017-04-28 21:18:55:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389136,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:55:DEBUG: {"name":"timeSync","msg":1493389135628}
2017-04-28 21:18:55:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09002,"value":1.09001,"time":1493389136,"show_value":1.09001,"buy":1.09002,"sell":1.09}}
2017-04-28 21:18:55:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389136,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:56:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389136,"round":true,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:56:DEBUG: {"name":"timeSync","msg":1493389136640}
2017-04-28 21:18:57:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389137,"round":true,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:57:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09002,"value":1.09001,"time":1493389138,"show_value":1.09001,"buy":1.09002,"sell":1.09}}
2017-04-28 21:18:57:DEBUG: {"name":"timeSync","msg":1493389137656}
2017-04-28 21:18:58:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09002,"value":1.09001,"time":1493389138,"round":true,"show_value":1.09001,"buy":1.09002,"sell":1.09}}
2017-04-28 21:18:58:DEBUG: {"name":"feedTopTraders2","msg":{"exp_time":1493389080,"feed":{"POST_USSR":{"1":[{"user_id":15298951,"active_id":1,"win_amount":0.58,"option_ids":[{"value":1.090095,"created":1493389127,"direction":"call","amount":1}],"user_name":"Name S.","active_name":"EURUSD","flag":"ZA"}]},"NOT_POST_USSR":{"1":[{"user_id":15298951,"active_id":1,"win_amount":0.58,"option_ids":[{"value":1.090095,"created":1493389127,"direction":"call","amount":1}],"user_name":"Name S.","active_name":"EURUSD","flag":"ZA"}]}}}}
2017-04-28 21:18:58:DEBUG: {"name":"timeSync","msg":1493389138692}
2017-04-28 21:18:59:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09002,"value":1.09001,"time":1493389139,"round":true,"show_value":1.09001,"buy":1.09002,"sell":1.09}}
2017-04-28 21:18:59:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389140,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:18:59:DEBUG: {"name":"feedTopTraders2","msg":{"exp_time":1493389080,"feed":{"POST_USSR":{"1":[{"user_id":17727197,"active_id":1,"win_amount":0.89,"option_ids":[{"value":1.090175,"created":1493389108,"direction":"call","amount":2}],"user_name":"nattanon s.","active_name":"EURUSD","flag":"TH"}]},"NOT_POST_USSR":{"1":[{"user_id":17727197,"active_id":1,"win_amount":0.89,"option_ids":[{"value":1.090175,"created":1493389108,"direction":"call","amount":2}],"user_name":"nattanon s.","active_name":"EURUSD","flag":"TH"}]}}}}
2017-04-28 21:18:59:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09003,"value":1.090015,"time":1493389140,"show_value":1.090015,"buy":1.09003,"sell":1.09}}
2017-04-28 21:18:59:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09002,"value":1.09001,"time":1493389140,"show_value":1.09001,"buy":1.09002,"sell":1.09}}
2017-04-28 21:18:59:DEBUG: {"name":"timeSync","msg":1493389139711}
2017-04-28 21:19:00:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09003,"value":1.090015,"time":1493389140,"show_value":1.090015,"buy":1.09003,"sell":1.09}}
2017-04-28 21:19:00:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.09,"ask":1.09003,"value":1.090015,"time":1493389140,"round":true,"show_value":1.090015,"buy":1.09003,"sell":1.09}}
2017-04-28 21:19:00:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09003,"value":1.09001,"time":1493389141,"show_value":1.09001,"buy":1.09003,"sell":1.08999}}
2017-04-28 21:19:00:DEBUG: {"name":"timeSync","msg":1493389140726}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08999,"ask":1.09002,"value":1.090005,"time":1493389141,"show_value":1.090005,"buy":1.09002,"sell":1.08999}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08997,"ask":1.08999,"value":1.08998,"time":1493389141,"show_value":1.08998,"buy":1.08999,"sell":1.08997}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08996,"ask":1.08998,"value":1.08997,"time":1493389141,"show_value":1.08997,"buy":1.08998,"sell":1.08996}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08995,"ask":1.08997,"value":1.08996,"time":1493389141,"show_value":1.08996,"buy":1.08997,"sell":1.08995}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08994,"ask":1.08997,"value":1.089955,"time":1493389141,"show_value":1.089955,"buy":1.08997,"sell":1.08994}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08994,"ask":1.08997,"value":1.089955,"time":1493389141,"round":true,"show_value":1.089955,"buy":1.08997,"sell":1.08994}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08994,"ask":1.08997,"value":1.089955,"time":1493389142,"show_value":1.089955,"buy":1.08997,"sell":1.08994}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08994,"ask":1.08996,"value":1.08995,"time":1493389142,"show_value":1.08995,"buy":1.08996,"sell":1.08994}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08993,"ask":1.08996,"value":1.089945,"time":1493389142,"show_value":1.089945,"buy":1.08996,"sell":1.08993}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08993,"ask":1.08997,"value":1.08995,"time":1493389142,"show_value":1.08995,"buy":1.08997,"sell":1.08993}}
2017-04-28 21:19:01:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08993,"ask":1.08997,"value":1.08995,"time":1493389142,"show_value":1.08995,"buy":1.08997,"sell":1.08993}}
2017-04-28 21:19:01:DEBUG: {"name":"timeSync","msg":1493389141751}
2017-04-28 21:19:02:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08993,"ask":1.08997,"value":1.08995,"time":1493389142,"show_value":1.08995,"buy":1.08997,"sell":1.08993}}
2017-04-28 21:19:02:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08993,"ask":1.08997,"value":1.08995,"time":1493389142,"round":true,"show_value":1.08995,"buy":1.08997,"sell":1.08993}}
2017-04-28 21:19:02:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08994,"ask":1.08997,"value":1.089955,"time":1493389143,"show_value":1.089955,"buy":1.08997,"sell":1.08994}}
2017-04-28 21:19:02:DEBUG: {"name":"newChartData","msg":{"active_id":1,"symbol":"EURUSD","bid":1.08996,"ask":1.08998,"value":1.08997,"time":1493389143,"show_value":1.08997,"buy":1.08998,"sell":1.08996}}

Time Format - candle timestamp

Hi,

Please provide information how timestamp is converted to H:M:S.

For Ex: I am getting data like this:

  1. 1502215199
  2. 1502215212.253

iqoptionapi (Python to C#)

Hi, i really want to develop iqoption autotrade bot for my own strategy but i am not a Python programmer and the api script (n1nj4z33/iqoptionapi) is in the same lang.

Is here anyone who can convert these scripts to .net C#.
I'll be helpful to him for his kind job.

Regards

Cannot Buy Anymore "Turbo" Does Not Exist

I am able to connect and get all information but cannot buy or put anything using the code below


import urllib3
import time
from iqoptionapi.api import IQOptionAPI
from websocket import create_connection
import json
ws = create_connection("wss://iqoption.com/echo/{randomnumber}/{randomnumber}/websocket")
print "Sending Cookie SSID"
ws.send("{'msg': 'My_Cookie', 'name': 'ssid'}")
print "Sent"
print "Receiving..."
result = ws.recv()
print "Received '%s'" % result
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
api = IQOptionAPI("iqoption.com", "email", "password")
api.connect()
time.sleep(5)
balance = api.profile.balance
time.sleep(5)
print balance
#api.setactives([76])
time.sleep(5)
#api.subscribe('tradersPulse')
#time.sleep(5)
#tsteg = api.buy(10, 76, "binary", "call")
time.sleep(5)
#print tsteg
#buys can only be done when the minute is full
#second => 0
while api.timesync.server_datetime.second != 48:
print api.timesync.server_datetime.second
#The first one is the money you want to set
#2nd is the asset. Check constants.ASSETS for the values
#3rd is the which mode. Turbo is for binary. Don't ask me why
#4th is either call or put
tsteg = api.buy(1, 76, "1", "call")
time.sleep(8)
print tsteg
#time.sleep(5)
#api.getcandles(1,1)
#time.sleep(5)
#data = api.candles.candles_data
#print api.candles.candles_data
#ws.close()

Gold Actives ID?

Hi,

What is actives ID for GOLD? I am not able to get it in constants.py?
How to identify candles ID for GOLD?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.