Commit Graph

75 Commits

Author SHA1 Message Date
Adrian Gallagher
c63f1b0ff6 Port from idoall's codebase (#161)
* 修复火币Post REST API方法不正确的问题,同时增加火币海带丝交易所

* add vendor folder

* 修改命名空间依赖

* 第一次提交分支

* 增加取消订单功能

* 修复binance.GetAccount方法

* 更新readme.md

* 增加 Gateio 交易所的支持,支持获取K线、支持的交易对、交易市场参数

* 替换HuobiHadax的参数

* 买/卖订单、取消订单

* OKEX 币币交易:增加获取用户信息,下订单,取消订单

* 测试ok kline

* 修复 Bitfinex 的 GetAccountInfo 方法

* 做一些不必要的删减

* 修复binfinex不返回错误的bug

* 统一我修改交易所的Kline获取方式

* Bitfinex 增加获取最新价格

* update main.go

* 更新GetSymbol方法

* 修改火币和海带丝的Kline编号ID类型

* 修改海带丝的默认配置大小写

* okex增加获取最新价格

*   调整okex的参数判断

* 调整比特儿的参数名称

* 修改火币、火币Hadax的参数全名

* 更新海带丝的配置名称

* 修改bintfinex的GetAccountInfo方法

* 去掉一行注释

* 支持zb交易所的部分功能

* 修复获取K线时没有设置参数的错误

* 增加 Binance 取消订单的方法,获取订单状态,获取所有打开的状态以及所有订单

* 修改获取深度和历史订单的数据

* 修改币安获取深度的参数

* 修改火币获取市场深度的参数

* 修改okex获取市场深度的参数

* 修改币安、OKex获取历史订单的参数

* 修复币安提交参数错误的问题

* merge upstrem

* merge后,调整一部分命名空间

* 修改ZB时间参数的命名方式

* 继续替换命名空间

* 命名空间的替换

* 继续命名空间的替换

* 测试

* Port code from idoall's PR

* Drop errors dep

* Start amending PR

* Fix commented code
* Translate text from Chinese to English (except for ZB). The reasning behind this is that it's a Chinese exchange and the structs are self explanatory in English, but would for other developers in China

* Translate Chinese text, basic formatting changes

* Remove commented lines and address feedback on PR
2018-08-04 08:30:20 +10:00
Adrian Gallagher
6b575dd925 Fixes Docker build
https://github.com/thrasher-/gocryptotrader/issues/162

Also enabled webserver so that communication can happen between the docker web and cli containers
2018-08-03 15:36:34 +10:00
Adrian Gallagher
4fadc6ff48 Adds support for new Huobi authorised requests and a tool for ecdsa keys
Fixes: https://github.com/thrasher-/gocryptotrader/issues/150
2018-07-13 15:54:31 +10:00
Ryan O'Hara-Reid
ed675bde30 Add bank details support 2018-07-12 12:25:07 +10:00
Adrian Gallagher
42d458d5ea Rename GDAX -> CoinbasePro 2018-07-11 10:42:37 +10:00
Marco Franssen
f920298d1a Fixed some typos in binance types and updated binance trading symbols in config example (#148)
* Added marcofranssen to contributors

* Added missing doc for binance type Response

* Fixed some typos in binance_types and aligned the doc blocks

* Updated binance trading pairs in config_example.json

* Enable all USDT trading pairs in example config for binance exchange
2018-07-10 11:48:31 +10:00
Adrian Gallagher
9b2ac9a6dc Bump last checked available currencies timestamp and expand automatic updating of available currencies for various exchanges 2018-06-15 15:56:01 +10:00
Ryan O'Hara-Reid
9d0616d8cf New communications package
Support for Slack, SMSGlobal, SMTP and Telegram

Supersedes: https://github.com/thrasher-/gocryptotrader/pull/126
2018-06-08 14:09:36 +10:00
Ryan O'Hara-Reid
58051b89c7 New package provider for foreign exchange rates.
Fixes issue: https://github.com/thrasher-/gocryptotrader/issues/131
Supersedes: https://github.com/thrasher-/gocryptotrader/pull/123
2018-06-06 21:05:17 +10:00
Adrian Gallagher
e80aaf1448 Allow for unauthenticated/authenticated websocket command handling 2018-05-31 15:08:49 +10:00
Adrian Gallagher
d3edd2845f Reorganise portfolio and prevent saving nil portfolio if not seeded 2018-05-31 14:07:23 +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
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
Adrian Gallagher
4069595f7c Use batch requesting where possible, add new functions for various exchanges, allow auto updating currencies for certain exchanges, update tests and configs 2018-02-12 15:08:30 +11:00
Adrian Gallagher
0d9d1a8da5 Update BTC Markets ticker/orderbook/trades code to support additional pairs 2018-02-10 20:10:04 +11:00
Ryan O'Hara-Reid
e57aa817dc Added support for Bitflyer exchange 2018-02-09 11:00:58 +11:00
Adrian Gallagher
8fd514b2ad Add EXMO exchange support 2018-02-07 13:03:51 +11:00
Adrian Gallagher
ce3d2953f8 Various improvements, update config 2018-02-05 12:30:04 +11:00
Bret Palsson
71333b29c7 Add Exchange: HitBTC 2018-02-04 00:53:22 -08:00
Adrian Gallagher
fca7e5e59a Update tests, config files and README.md 2018-02-03 15:18:12 +11:00
askew
65ded17206 Added support for Yobit.net 2018-02-02 22:35:44 +02:00
Ryan O'Hara-Reid
28bd0e52bc Added support for Binance exchange 2018-02-01 16:39:26 +11:00
Ryan O'Hara-Reid
3b8835d995 Added support for Bithumb exchange 2018-01-31 14:44:52 +11:00
Adrian Gallagher
1e92cab53a Update Huobi REST authenticated and unauthenticated requests 2018-01-30 13:11:36 +11:00
Ryan O'Hara-Reid
e7a79c17be Added support for Okex 2018-01-29 13:18:43 +11:00
Adrian Gallagher
baa994fe9b Trivial improvements 2018-01-24 09:23:35 +11:00
Adrian Gallagher
226a79e6e0 Make BTCC only use BTCUSD and update config files 2018-01-20 15:50:14 +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
16629c6c6e Add method to fetch available currencies from Poloniex, fix available currency bug in poloniex and update config_example.json 2018-01-09 16:31:15 +11:00
Adrian Gallagher
ce908ee939 Use config.json by default if config file isn't encrypted
Fixes issue: https://github.com/thrasher-/gocryptotrader/issues/48
Allows for auto syntax highlighing in text editors/IDEs
2017-11-14 14:15:01 +11:00
Adrian Gallagher
255bd125c8 Move config.json to config.dat 2017-03-05 18:51:49 +11:00
Adrian Gallagher
fed5367240 Add config encryption support 2017-03-03 17:32:48 +11:00
Adrian Gallagher
427813a62a Update config currencies 2017-02-19 15:14:34 +11:00
Adrian Gallagher
16982e36ae Updated Coinbase to GDAX. 2016-08-06 16:34:25 +10:00
Adrian Gallagher
58d922b8f2 Updated config_example.json to include Ethereum for Bitfinex. 2016-03-14 23:07:47 +11:00
Adrian Gallagher
b2bd9036d7 Updated config_example.json available currencies and adjusted settings to lessen output for example config. 2016-03-14 21:31:29 +11:00
Adrian Gallagher
03538165d6 Added basic HTTP API support for Poloniex. 2016-02-11 00:24:31 +11:00
Adrian Gallagher
084be86148 Remove Cryptsy exchange support due to exchange security breach. 2016-01-17 18:41:18 +11:00
Adrian Gallagher
b54ff7fe0d Added HTTP API support for Brighton Peak Exchange. 2015-12-14 01:31:38 +11:00
Adrian Gallagher
8bfc14bc80 Removed DWVX support due to exchange closure. 2015-11-28 19:46:13 +11:00
Adrian Gallagher
178b59ef71 Added basic webserver support. 2015-11-28 19:07:23 +11:00
Adrian Gallagher
8763da2e86 Added IsCryptocurrency function. 2015-11-09 18:25:26 +11:00
Adrian Gallagher
0c8670cc6a Added basic LocalBitcoins support. 2015-11-09 17:49:30 +11:00
Adrian Gallagher
b2e39f17f5 Disabled DWVX (API/website no longer accessible) 2015-10-29 18:48:46 +11:00
Adrian Gallagher
16b89324a0 Updated Bitfinex REST API 2015-10-16 13:58:06 +11:00
Adrian Gallagher
4297f8e9bd Renamed BTCChina to BTCC after exchange rebrand. 2015-10-09 23:07:59 +11:00
Adrian Gallagher
37aa813dfc Updated available currencies for BTC-e. 2015-10-08 19:35:09 +11:00
Adrian Gallagher
ad6bf29b3e Improved SMS handling code. 2015-06-21 19:11:56 +10:00
Adrian Gallagher
1f6f160c23 Added Gemini Beta Exchange HTTP support. 2015-06-15 21:29:48 +10:00
Adrian Gallagher
552dca5a07 Added HTTP Exchange support for DWVX. 2015-05-31 18:14:28 +10:00