herenow
604443fbbb
Fix Huobi's POST requests ( #186 )
...
* Fix Huobi's POST request content-type
If we try to send a POST request to Huobi w/ a content-type of
"application/x-www-form-urlencoded" we will receive an error:
Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
Their english documentation is incorrect, it does not specify this atm,
translating their chinese documentation, it states:
"Content-Type: application/json must be declared in the POST request header;
Content-Type: application/x-www-form-urlencoded must be declared in the GET
request header. (Chinese users recommend setting Accept-Language: zh-cn)"
* Fix Huobi's place new order request (send as json)
We should not send the order details through url parameters, this
needs to be sent as a json payload via the request body.
Documentation:
https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference#post-v1orderordersplace--make-an-order-in-huobipro
* Fix Huobi's margin transfer/margin order/withdraw requests
This requests data need to be sent as json, not as a query string.
Docs:
https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference#post-v1dwtransfer-inmargin--transfer-asset-from-spot-account-to-margin-account
https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference#post-v1marginorders--margin-application
https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference#post-v1dwwithdrawapicreate---create-a-withdraw-application
* Fix Huobi's margin repayment request
This request data needs to be sent a json, not via the query string.
Also note, that the "order-id" parameter is already sent through the
url path, it does not need to be included in the request body.
2018-10-03 10:58:32 +10:00
Adrian Gallagher
7186ac2602
Merge pull request #187 from thrasher-/test123
...
Fixes frontend security issues
2018-10-03 10:57:36 +10:00
Scott Grant
2d334a9faf
Fixes security issues
...
Signed-off-by: Scott Grant <scott.grant@thrasher.io >
2018-10-02 16:03:29 +10:00
Adrian Gallagher
17d9e92550
Merge pull request #185 from herenow/chore/optional-auth-pem-key
...
Optional Huobi’s auth private key signature param
2018-09-30 12:16:16 +10:00
herenow
0fdf76d264
Optional Huobi’s auth private key signature param
...
This is a security feature that was introduced briefly, where you were
required to upload a public key while generating your api keys, and for
authentication you had to use your private keys to sign the request and
send it through this “PrivateSignature” param.
This security feature was rolled back and it is not mentioned anymore
in Huobi’s documentation.
For backwards compatibility purposes we should still keep this feature
though, they still seem to accept this parameter, I guess if you have
one of this old api keys, that was generated with a given public key,
you still have to send it.
2018-09-29 19:25:38 -03:00
Adrian Gallagher
a2c5123c9e
gemini: ensure interface isn't nil because conversion
2018-09-26 13:39:19 +10:00
Adrian Gallagher
bdd1fa3cdf
config consistency check to ensure an enabled pair is supported by the exchange
2018-09-21 16:25:27 +10:00
Adrian Gallagher
a1bd39ddac
bitmex: supports auto pair updating
2018-09-21 16:22:17 +10:00
Adrian Gallagher
6aa0359060
bugfix: okex - fix authenticated path requests
2018-09-20 15:27:01 +10:00
Adrian Gallagher
96cbf90446
Remove non-needed getter functions for currency pairs
...
Fixes https://github.com/thrasher-/gocryptotrader/issues/180
2018-09-20 15:01:11 +10:00
Adrian Gallagher
042c4bfef2
bugfix: don't index or range over data if length is zero
2018-09-20 14:46:38 +10:00
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
Ryan O'Hara-Reid
ca0c22f422
Merge pull request #169 from ermalguni/master
...
OKEX websocket
resolves #158
2018-08-27 10:11:19 +10:00
Adrian Gallagher
b656c23295
Merge pull request #175 from shazbert/unreachable_code_fix
...
Fixed unreachable code in websocket client front-end code
2018-08-17 10:45:32 +10:00
Ryan O'Hara-Reid
9918896923
Fixed unreachable code
2018-08-17 10:41:04 +10:00
Adrian Gallagher
cdb4df98e7
Merge pull request #174 from gloriousCode/master
...
Fix build errors, warnings, vulnerabilities, linting for front-end
2018-08-17 08:22:58 +10:00
GloriousCode
a03e85ebfd
Removes commented out imports in polyfills.ts
...
Keeps structure for future potential use
2018-08-16 18:35:17 +10:00
GloriousCode
6c0ad602da
Lint fixes
2018-08-16 17:32:25 +10:00
GloriousCode
bdcf87ab03
0 vulnerabilities
2018-08-16 08:58:14 +10:00
GloriousCode
d80b2c96b2
npm audit run
...
Removes npx
2018-08-16 08:44:32 +10:00
GloriousCode
0a20061cc2
more fixes
2018-08-16 07:53:19 +10:00
GloriousCode
f7bc2433dd
Fixes build issues. Removes warnings.
2018-08-16 07:16:40 +10:00
Adrian Gallagher
a7ed69c843
Merge pull request #173 from marcofranssen/hotfix/lowercase-missed-configs
...
Hotfix/lowercase missed configs
2018-08-13 12:04:31 +10:00
Marco Franssen
18489f7a30
Added test for config/all json response
2018-08-10 16:05:20 +02:00
Marco Franssen
15d9a9fb88
Added missing type for exchangeName parameter
2018-08-10 16:05:20 +02:00
Marco Franssen
cbbad60e78
Lowercased the remaining config values for the config/all endpoint
2018-08-10 16:05:20 +02:00
GloriousCode
625d5f47f7
Adds SVG images of logo
2018-08-10 17:25:36 +10:00
Ermal Guni
07ef1406ce
fixed merge conflicts
2018-08-09 23:46:37 +02:00
Ryan O'Hara-Reid
06a0caec43
Bitmex exchange ( #160 )
...
* Added REST support for Bitmex
* Added Bitmex documentation updates
* Update config_example.json
* Added final REST functions for user account operations.
* Added initial websocket support
* Change function access
Added reconnection logic
* Added initial routine management
Updated wrapper functions
* General fixes
2018-08-09 16:31: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
391e81b00e
Updated docs ( #171 )
2018-08-06 21:33:57 +10:00
Marco Franssen
6c2f6df875
Lowercase json to be more compliant with javascript coding standards ( #163 )
2018-08-06 21:33:25 +10:00
Ermal Guni
cc7caf1a32
contract_id json error conversion
2018-08-05 18:31:01 +02:00
Ermal Guni
7377dca9a9
okex config pairs fixes
2018-08-05 17:51:02 +02:00
Ermal Guni
a7baed25d6
okex pairs fixes
2018-08-05 17:46:44 +02:00
Ermal Guni
f4602fb1f9
fix typo
2018-08-05 15:21:00 +02:00
Ermal Guni
6fc05d46d2
running the websocket if enabled
2018-08-05 15:15:34 +02:00
Ermal Guni
0f26026a15
added websocket logic
2018-08-05 15:15:21 +02:00
Ermal Guni
ff5c1eb62b
added okex websocket types
2018-08-05 15:14:24 +02:00
Ermal Guni
f9849eae31
added gorilla websocket conn and mutex
2018-08-05 15:14:08 +02:00
Ermal Guni
295072a623
no need to install deps again
2018-08-05 15:04:31 +02:00
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
Ryan O'Hara-Reid
ecac1e124c
Fixed issue with okex ( #164 )
2018-08-03 16:10:47 +10:00
Ermal Guni
e3c98b9078
maintain dockerfile layering and fix docker-compose build ( #165 )
2018-08-03 16:08:38 +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
1e68b48547
Remove non-needed testconfig.json file
2018-08-03 13:54:48 +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
Zhiyi Weng
aaf9f52a70
APISecret should only be used to sign the request. ( #157 )
2018-07-18 20:57:17 +10:00
GloriousCode
322b67e5c8
Fixes theme picker reference error after changes in https://github.com/thrasher-/gocryptotrader/pull/154
2018-07-18 16:55:17 +10:00