nbarthel / cryptsy-api Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the Cryptsy API (public and private) in Ruby
License: MIT License
An implementation of the Cryptsy API (public and private) in Ruby
License: MIT License
Unable to access cryptsy_api gem
2.1.0 :005 > cryptsy = Cryptsy::API::Client.new(api_key, api_secret)
=> #<Cryptsy::API::Client:0x000000039411e8 @key="62f3f575d5b8f260b684717576258cec24aaf7f2", @secret="ac32cc7876a64a69753276d098d2a68016a066c4ca7e4571bc8c4e5bba9c782339aeeaf4444ae7f0", @private_caller=nil>
2.1.0 :006 > cryptsy.getinfo
JSON::ParserError: 757: unexpected token at '
Unable to access cryptsy with gem
Both public & private calls are not working
JSON::ParserError (757: unexpected token at '
<title>400 - Bad Request</title>//
</script>
Via
https://www.cryptsy.com/pages/api
Security Note: Since implementation of our new security layer, some API clients are getting denied access. If possible, you should program your bot to accept cookies to pass the security test. If you are still unable to connect, then contact us with your IP address so that we may whitelist your application.
Correct me if im wrong, but browsing over the code, it seems like you create a new user agent on every request, so at a glance it seems like cookies don't persist between calls.
Is that something you were going to address? I wouldn't want to contact cryptsy each time my IP address changes.
Cryptsy has a new private API url, could this be integrated in the gem?
Regards Boy Maas (a happy user of the cryptsy-api)
In gem there is no handling of JSON parser error.
A JSON::ParserError occurred in background at 2014-11-10 07:12:12 UTC :
</style>
/home/ubuntu/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/json/common.rb:155:in`parse'
/home/ubuntu/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/json/common.rb:155:in `parse'
cryptsy-api (0.1.4) lib/cryptsy/api.rb:42:in`execute_method'
cryptsy-api (0.1.4) lib/cryptsy/api.rb:204:in `call_private_api'
cryptsy-api (0.1.4) lib/cryptsy/api.rb:82:in`getinfo'
I don't see a way to turn off the debug output. I have forked the repo I can add this and send a pull request if you are interested?
Cryptsy has adde da new method called "getorderstatus". This is found in api. But not in this gem. Can add?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.