Commit Graph

35 Commits

Author SHA1 Message Date
soxipy
fb4e2d1452 localbitcoins fixes (#177)
* General LocalBitcoin fixes

* Added override variables to config for exchange packages to allow different API URL's
2018-08-27 14:19:29 +10:00
Adrian Gallagher
a0de1b78a7 Support configurable HTTP user agent per exchange 2018-08-07 13:05:13 +10:00
soxipy
efc6c8d31e Kraken rework + localbitcoins fixes (#170)
* OpenPosition

* AddOrder

* strict json schema

* localbitcoins DashBoard

* specific txid for OpenPositions

* catch exchange (not http) errors

* exchange errors: more informative

* proper API error handling

* strict AddOrder params/options encoding/validating

* TradeVolume and CancelOrder

* QueryLedgers

* GetLedgers

* GetTradesHistory

* QueryTrades

* GetClosedOrders

* GetClosedOrders: strict params

* QueryOrdersInfo

* UserRef is int32 according to doc

* CancelOrder

* GetOpenOrders

* GetTradeBalance

* GetBalance

* GetAssetPairs

* GetAsset

* GetServerTime

* no need for GeneralResponse

* TestGetServerTime fix
2018-08-06 21:38:41 +10:00
Ryan O'Hara-Reid
3b8591bcc8 Updated documentation tool (#155)
* Updated documentation tool
Added templates
Updated documentation using tool

* Fixed incorrect version in web README

* Added new templates to tool.
Updated documents in templates across the code base.
Used tool to regenerate documentation.
2018-07-19 16:02:24 +10:00
Marco Franssen
0f209165d5 Improved code quality (#154)
* Removed package-lock.json form gitignore as it ensures specific package versions

* Updated all @angular web dependencies

* Resolved tslint errors using autofix option

* Resolved some more tslint issues

* Added lint scripts to package.json to easy lint the ts files

* Updated codelyzer and tslint

* Run web on travis using node 10 and run the lint task

* Resolved some more tslint issues after upgrading tslint and codelyzer

* Resolved golint issues with regards to exchange comments

* Resolved spelling errors shown by goreportcard.com

* Resolved gofmt warnings using goreportcard.com

* Resolved golint issue by removing unrequired else statement

* Refactored slack.go to reduce cyclomatic complexity

* Fixed govet issue where Slack was passed as value instead of reference
2018-07-18 15:46:47 +10:00
Ryan O'Hara-Reid
ed675bde30 Add bank details support 2018-07-12 12:25:07 +10:00
Ryan O'Hara-Reid
02dbab03ce Added new initial functions for bot/exchange interface. (#120) 2018-05-30 13:49:58 +10:00
Ryan O'Hara-Reid
dc11f87b8b Updated README template files and regenerated documentation. (#125) 2018-05-14 10:03:17 +10:00
Adrian Gallagher
ac41a7cfad New features and bug fixes
- Modifications made to the request package. Planned improvements will be
sending requests on intervals, rate limiter back off support, dynamic tuning
and requests packaged into a request job group.
- Can modify each exchanges individual HTTP client (e.g timeout and
transport settings).
- Bot now uses an exchange config HTTP timeout value.
- Bot now uses a global HTTP timeout (configurable).
- Batched ticker request support for exchanges.
- Ticker and Orderbook fetching now are spanned accross multiple
go routines and regulated by a sync wait group.
- Fixes hack used to load exchanges, now uses a sync wait group.
- Ticker and Orderbook storage and fetching now uses mutex locks.
- New pair function for finding different pairs between two supplied
 pair arrays. This is used for currency pair updates for exchange which
support dynamic updating.
- Shows removal/additions of dynamic updates currencies.
2018-05-04 13:20:19 +10:00
Ryan O'Hara-Reid
7fc9d20fd7 Introduce request package and integrate with exchanges 2018-03-27 14:22:52 +11:00
Adrian Gallagher
52dfddbb18 Feature: Add support to check whether an exchange supports automatic currency pair updates and if they don't, show a warning if the last currency pair update is >= 30 days
Also fix race condition in config get/set functions
2018-03-27 12:53:46 +11:00
Ryan O'Hara-Reid
9514754960 New documents generated by documentation tool. 2018-02-28 09:55:11 +11:00
Ryan O'Hara-Reid
10d5abacb3 Initial implementation of interface function for getting exchange history. 2018-02-26 10:01:42 +11:00
Adrian Gallagher
e8f8e32609 Add/improve common string functions, currency pair handling, fix LBTC orderbook amount 2018-02-08 12:00:55 +11:00
Adrian Gallagher
2e1b5afd94 Fix err check 2018-01-29 17:13:26 +11:00
Adrian Gallagher
34eeed287a Add various helper functions for exchanges and currency pairs.
Improve Kraken config/request currency handling.
Update config file to reflect changes.
2018-01-15 16:53:12 +11:00
Adrian Gallagher
2446007b03 Various improvements 2018-01-03 18:36:13 +11:00
Ryan O'Hara-Reid
baae729014 Fixed linter issues for Kraken package and added testing. 2017-11-22 15:50:50 +11:00
Ryan O'Hara-Reid
79a1911c93 In the common package added JSONDecode error check. Added verbosity in SendHTTPGetRequest. Updated Nonce package function. Fixed issues in ItBit package and expanded test coverage. 2017-09-18 14:47:14 +10:00
Adrian Gallagher
87633c2142 Link up orderbook websocket code, improve exchange test coverage and various other fixes 2017-09-14 15:07:59 +10:00
Adrian Gallagher
913c104d09 Finish off websocket ticker demo, update config files and fix tests 2017-09-14 15:04:38 +10:00
Adrian Gallagher
ad7ae88ff4 Add UpdateOrderbook exchange function and update all exchanges to support it 2017-09-11 14:02:39 +10:00
Adrian Gallagher
a5b3a6b489 Add demo routines function to fetch all exchange tickers 2017-09-11 14:02:39 +10:00
Adrian Gallagher
a1040c8d94 Start websocket implementation 2017-09-11 14:02:39 +10:00
Adrian Gallagher
55ea1fe434 Add generalised functions for handling exchange enabled and available currencies 2017-08-25 15:54:45 +10:00
Adrian Gallagher
f3c1f4880d Add nonce package for exchanges 2017-08-21 15:57:41 +10:00
Adrian Gallagher
4eaa9d0ec9 Prevent authenticated calls when authenticated API support is disabled 2017-08-21 13:10:57 +10:00
Adrian Gallagher
c7399ce69b Fix various issues for goreport 2017-08-10 09:15:46 +10:00
Ryan O'Hara-Reid
de48b62731 Fixed stutter issues from exchange.go 2017-07-31 11:45:12 +10:00
Ryan O'Hara-Reid
00d2024e5a Changed const naming convention assoc. with common.go 2017-07-31 11:42:56 +10:00
Adrian Gallagher
d526e9f2a9 Add currency pair support 2017-04-19 00:16:53 +10:00
Adrian Gallagher
b84a27a6a5 Add method for obtaining orderbook info 2017-04-08 02:42:18 +10:00
Adrian Gallagher
4bd2c92ec3 Refactor Exchange code 2017-03-29 13:47:56 +11:00
Adrian Gallagher
659ac59bbb Package stats 2017-03-29 13:47:56 +11:00
Adrian Gallagher
aeb327c80c Package exchanges 2017-03-29 13:47:56 +11:00