Giter VIP home page Giter VIP logo

rest's People

Contributors

happiness123 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rest's Issues

error

调用请求返回报错
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

PHP: rate should be price

On line 58 - rate should be price, otherwise you receive 10000 error:

Change:
$parameters=array("amount"=>$Amount, "partner"=>$this->partner, "rate"=>$Price, "symbol"=>'btc_usd',

To:
$parameters=array("amount"=>$Amount, "partner"=>$this->partner, "price"=>$Price, "symbol"=>'btc_usd',

python3 AttributeError: 'module' object has no attribute 'HTTPSConnection'

def httpGet(url,resource,params=''):
    conn = http.client.HTTPSConnection(url, timeout=10)
pydev debugger: starting
 现货行情 
Traceback (most recent call last):
  File "/Applications/Aptana Studio 3/plugins/org.python.pydev_3.0.0.1388187472/pysrc/pydevd.py", line 1479, in <module>
    debugger.run(setup['file'], None, None)
  File "/Applications/Aptana Studio 3/plugins/org.python.pydev_3.0.0.1388187472/pysrc/pydevd.py", line 1125, in run
    pydev_imports.execfile(file, globals, locals)  #execute the script
  File "/Applications/Aptana Studio 3/plugins/org.python.pydev_3.0.0.1388187472/pysrc/_pydev_execfile.py", line 38, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc) #execute the script
  File "/Users/apple/node/undo4096/tool/videoPei/btc/Client.py", line 21, in <module>
    print (okcoinSpot.ticker('btc_usd'))
  File "/Users/apple/node/undo4096/tool/videoPei/btc/OkcoinSpotAPI.py", line 19, in ticker
    return httpGet(self.__url,TICKER_RESOURCE,params)
  File "/Users/apple/node/undo4096/tool/videoPei/btc/HttpMD5Util.py", line 19, in httpGet
    conn = http.client.HTTPSConnection(url, timeout=10)
AttributeError: 'module' object has no attribute 'HTTPSConnection'

Signature does not match

Hi All,
In OKCoin php API I'm getting 10007, Signature does not match error while trading. I passed the API key and Secret key to instance creation. Please help.

Thanks in advance,
Anish T

make python API client installable via pip

Hello there, thanks for the hardwork and for making some API client examples in Python.

I kindly wanted to ask if we could break this out into a package say OKCoin/okpy as a separate repository and make that installable via pip or easy_install. I would be happy to help out with this process if interesting.

Thank you!

The question about trade_history or trade_list API

These two API has given every record a param 'type', it value 'buy' or 'sell'.
I think there exist some problem.One trade record means someone/somebodys buy and someone/somebodys sell. How to set the param 'type'?

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.