n1nj4z33 / iqoptionapi

IQ Option API 4.x (Python 2.7) The project is obsolete and is not supported because of problems with access to IQ Options in Russia
119 stars 542 forks source link

Develop #48

Closed jacekv closed 6 years ago

jacekv commented 6 years ago

The README contains a small example on how to use the API. The code retrieves the current balance, collect candle data and places a buy order.

Besides that, it allows asking for more candle data. It is possible to specify the amount data the user would like to have.

It is also possible to place a buy order at any time, which the need to check if the second is zero.

Aiacos commented 6 years ago

why rejected this pull request?

boskiv commented 6 years ago

@Aiacos because build failed

$ pylint iqoptionapi --rcfile=./pylint.rc
************* Module iqoptionapi.api
W:275, 0: Found indentation with tabs instead of spaces (mixed-indentation)
C: 68, 8: Invalid attribute name "buySuccessful" (invalid-name)
R: 39, 0: Too many instance attributes (8/7) (too-many-instance-attributes)
************* Module iqoptionapi.ws.client
W: 29, 0: Found indentation with tabs instead of spaces (mixed-indentation)
C: 39, 0: Exactly one space required after assignment
            self.api.buySuccessful =  message["msg"]["isSuccessful"]
                                   ^ (bad-whitespace)
************* Module iqoptionapi.ws.chanels.buyv2
C: 20, 0: Trailing whitespace (trailing-whitespace)
W: 25, 0: Found indentation with tabs instead of spaces (mixed-indentation)
C: 27, 0: Trailing whitespace (trailing-whitespace)
W: 28, 0: Found indentation with tabs instead of spaces (mixed-indentation)
C: 32, 0: Wrong continued indentation (add 14 spaces).
        "exp": exp,
  ^             | (bad-continuation)
C:  4, 0: standard import "import datetime" should be placed before "from iqoptionapi.ws.chanels.base import Base" (wrong-import-order)
************* Module iqoptionapi.ws.objects.listinfodata
C:  9, 0: Missing class docstring (missing-docstring)
W: 36,31: Redefining built-in 'id' (redefined-builtin)
C: 36, 4: Invalid argument name "id" (invalid-name)
W:  2, 0: Unused import json (unused-import)
-----------------------------------
Your code has been rated at 9.60/10
The command "pylint iqoptionapi --rcfile=./pylint.rc" exited with 28.
n1nj4z33 commented 6 years ago

Fix pylint warnings;