Commit graph

5 commits

Author SHA1 Message Date
Maciej Małecki
1f3c59dbc0 More refactoring on Trader 2014-04-14 15:16:53 +02:00
Maciej Małecki
d6a0f17e80 Get started with Trade class
The reason for isolating the trader class is testability. It's hard to
properly test code with as much global state as files in `lib/api` had.

With a `Trader` class we can easily instantiate multiple objects, with
different configs, without the need for seeding the database with test
configs, effectively enabling us to do unit tests as well as integration
tests.

Besides that, this will allow easier reconfiguration, thanks to
`Trader#configure` method.
2014-04-14 13:06:48 +02:00
Maciej Małecki
3932e17b2e Move atm-api.js to routes.js 2014-04-11 03:32:37 +02:00
Maciej Małecki
bd1963fb6a Remove /config endpoint
We seem to have went with stashing relevant configuration onto
`/poll/:currency` result.
2014-04-11 03:16:17 +02:00
Maciej Małecki
f376e96ab2 Start the refactor 2014-04-10 12:09:29 +02:00