mcgizzle / haxchange Goto Github PK
View Code? Open in Web Editor NEWA uniform collection of API bindings for various cryptocurrency exchanges
License: BSD 3-Clause "New" or "Revised" License
A uniform collection of API bindings for various cryptocurrency exchanges
License: BSD 3-Clause "New" or "Revised" License
Implement hspec for testing each of the API functions.
Initially implement it for Kraken.
Then create a template file to be used when added new exchanges.
Refactor out url into function
getUrl :: Opts -> ([String] -> String) -> String
This can be used to create
getUri :: Opts -> ([String] -> String) -> String
getUri = getUrl (someFunc..)
Should this be generalised to all exchanges and placed in the Utils module?
the FromJSON
instances for Ticker
types are incorrect.
It reads in the incorrect volume.
Update the ticker type to include volumes for both bid and ask, and alter the FromJSON
appropriately
call getorderbook
instead of gettcker
This will provide the bid and ask volumes.
the Currency
data type is made of a constructor and an auxiliary data type Currency'
data Currency = FIAT Currency' | COIN Currency'
This is overkill, Currency'
should be removed and Currency
should follow this layout
data Currency = COIN BTC
| COIN ETH
...
| FIAT USD
...
At the minute, the handleRes
function requires a Bool
parameter.
handleRes :: (Show a, FromJSON b, AsValue a) => Bool -> Response a -> IO (Either String b)
Where the Bool
is used to decide wether to get the members of the result.
let p = if member then res ^? responseBody . key "result" . members
else res ^? responseBody . key "result"
this is an un-elegant hack and should be fixed.
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.