This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Bitmex misc merge #329
Merged
badgerwithagun
merged 110 commits into
bitrich-info:develop
from
henryxwong:bitmex-merge
Jun 17, 2019
Merged
Bitmex misc merge #329
Changes from 2 commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
2ba28da
add interface support for trade service
declan94 9cdcba4
Misspell fix
declan94 131d662
bug fix
declan94 7269bd8
add support for okex futrues trading
declan94 0d21b9d
code formatting
declan94 cd7cca8
bitmex authenticate
declan94 4e05dd1
order update subscription bug fix
declan94 625e3cd
temp
declan94 18bf3c3
support bitmex futures contract
declan94 043c573
notification of reconnect failure
declan94 01c7a4a
to hetang repo
declan94 045bf27
Merge branch 'reconn-fail-hook' into hetang
declan94 6947c3c
exchange interface support
declan94 6f264d1
end
declan94 6753f6e
Merge branch 'reconn-fail-hook' into hetang
declan94 4910dcb
bitmex trade service support
declan94 3d8e6af
merge trade service implemention for bitmex
declan94 df8b75d
Merge branch 'okex-futures' into hetang
declan94 d93eb22
send ping message to server every 15 sec
declan94 3dcc8fc
Merge branch 'okcoin_pingpong' into hetang
declan94 c561404
handle unexpected channel error
declan94 52bafda
Merge branch 'okcoin_robust' into hetang
declan94 05a540e
try to fix kill bug
declan94 1493d0f
okcoin handle result message
declan94 54c8a13
Merge branch 'okcoin_handle_result_message' into hetang
declan94 afc2ff1
Nomsg support
declan94 3adddf4
add observable for message delay
declan94 e5e4b7e
merge delay
declan94 60b2e0a
bitmex okex streamingservice protected
declan94 44d36ad
marketstreamingservice protected streaming service
declan94 8a533f0
resubscribe channels
declan94 b2aba30
eventloop leap fix
declan94 d1b29d8
sleep before reconnect
declan94 33d8a1f
observable of disconnect
declan94 4e9ffa4
not reconnect if observe disconnect
declan94 497538e
bug fix
declan94 a61aa85
bug fix
declan94 89c6276
bug fix
declan94 c972bf4
bug fix
declan94 d87f4a0
try catch
declan94 8009a86
add maven release plugin
declan94 a6f3dd1
change scm
declan94 6180c93
[maven-release-plugin] rollback the release of xchange-stream-parent-…
declan94 2276b4f
scm
declan94 5074025
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.1
declan94 fc827a4
[maven-release-plugin] prepare for next development iteration
declan94 5e87fb2
do not send pingpong when disconnected
declan94 dd03c80
translate bitmex contract
declan94 f3d29d6
okcoin orderbook bug fix
declan94 dbd3486
maven repo address using domain name
declan94 f4aa587
maven-release auto version submodules
declan94 4b913de
Merge branch 'develop' into okcoin_pingpong
dozd 01529df
pom snapshot version
declan94 19c0f72
okcoin pingpong using reactiveX
declan94 bf00ae8
merge okcoin pingpong
declan94 40b3fdb
log unsubscribed error
declan94 223aadf
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.2
declan94 7a63920
[maven-release-plugin] prepare for next development iteration
declan94 464e9ff
log
declan94 5b7bc4b
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.3
declan94 cc497ab
[maven-release-plugin] prepare for next development iteration
declan94 a54bce4
fcoin get orderbook
declan94 96d7dde
resubscribe with no message problem
declan94 41d56cb
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.4
declan94 21cb997
[maven-release-plugin] prepare for next development iteration
declan94 4e3395e
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.4
declan94 8e30939
Revert "resubscribe with no message problem"
declan94 bb7397e
to snapshot
declan94 e9b6706
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.4
declan94 16270a4
[maven-release-plugin] prepare for next development iteration
declan94 f89c35b
resubscribe with no message problem fix
declan94 4bdb55b
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.5
declan94 6410cd5
[maven-release-plugin] prepare for next development iteration
declan94 b3121d6
okex error handle bug
declan94 e631d4d
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.6
declan94 1caa9e8
[maven-release-plugin] prepare for next development iteration
declan94 5e963c1
bitmex ticker to ticker
f6337cd
okex compressed message
5673b49
log more precise
78dc4b7
[maven-release-plugin] prepare release xchange-stream-parent-4.3.2.7
c05a25b
[maven-release-plugin] prepare for next development iteration
04b3d10
Restore the Bitmex Execution reports code which was cut out of #191.
Foat 72828ca
bitmex add index subscription
declan94 0d5bf75
Revert "bitmex add index subscription"
declan94 bec0866
okex v3 get orderbook, bitmex adapt to new version XChange
declan94 2ce7f93
pom repo
declan94 72e2102
okex bug fix
declan94 2bb4a99
okex bug fix
declan94 491f3e5
okex bug fix
declan94 844da97
okex npe bug
declan94 b59683b
bitmex login and get order property
declan94 d226cee
bitmex funding
declan94 56557c1
okex v3 authenticate
declan94 0979201
default get passphrase
declan94 da15167
inherent XChange okex-v3
declan94 5c5fb40
bug fix
declan94 206ad2a
login waiting done
declan94 6c49111
bug fix
declan94 a2ea2b8
login fix, need heartbeat now
declan94 39aa686
okex pingpong, bitmex perpetual null
declan94 9e57ff1
okex pingpong without apikey set
declan94 8b8953b
okex streaming service bug fix
declan94 32a7b6f
catch price==null
declan94 307d79a
not catch npe
declan94 7d95637
Merge remote-tracking branch 'remotes/badgerwithagun/bitmex-execution…
henryxwong fd4ca1a
Merge remote-tracking branch 'remotes/declan94/hetang' into bitmex-merge
henryxwong 7bd3c0a
Bugfix and fix all the test cases
henryxwong ab8dd9a
Merge branch 'develop' of github.com:bitrich-info/xchange-stream into…
henryxwong 6345188
Update based on code review
henryxwong b180f1b
Delete submit order
henryxwong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
package info.bitrich.xchangestream.bitmex; | ||
|
||
import info.bitrich.xchangestream.bitmex.dto.BitmexLimitOrder; | ||
import info.bitrich.xchangestream.core.StreamingExchange; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
import org.knowm.xchange.ExchangeFactory; | ||
import org.knowm.xchange.ExchangeSpecification; | ||
import org.knowm.xchange.bitmex.dto.marketdata.BitmexPrivateOrder; | ||
import org.knowm.xchange.bitmex.dto.trade.BitmexSide; | ||
import org.knowm.xchange.bitmex.service.BitmexMarketDataService; | ||
import org.knowm.xchange.bitmex.service.BitmexTradeService; | ||
import org.knowm.xchange.currency.CurrencyPair; | ||
|
@@ -19,7 +16,6 @@ | |
import org.slf4j.LoggerFactory; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
import static org.knowm.xchange.bitmex.BitmexPrompt.PERPETUAL; | ||
|
||
|
@@ -62,13 +58,13 @@ public void testDeadmanSwitch() throws Exception { | |
|
||
final BitmexStreamingMarketDataService streamingMarketDataService = (BitmexStreamingMarketDataService) exchange.getStreamingMarketDataService(); | ||
// streamingMarketDataService.authenticate(); | ||
CurrencyPair xbtUsd = CurrencyPair.XBT_USD; | ||
CurrencyPair xbtUsd = exchange.determineActiveContract(CurrencyPair.XBT_USD.base.toString(), CurrencyPair.XBT_USD.counter.toString(), PERPETUAL); | ||
|
||
streamingMarketDataService.getExecutions("XBTUSD").subscribe(bitmexExecution -> { | ||
streamingMarketDataService.getRawExecutions("XBTUSD").subscribe(bitmexExecution -> { | ||
logger.info("!!!!EXECUTION!!!! = {}", bitmexExecution); | ||
}); | ||
|
||
OrderBook orderBook = marketDataService.getOrderBook(CurrencyPair.XBT_USD, PERPETUAL); | ||
OrderBook orderBook = marketDataService.getOrderBook(xbtUsd); | ||
// OrderBook orderBook = marketDataService.getOrderBook(new CurrencyPair(Currency.ADA, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should call using the result of |
||
// Currency.BTC), BitmexPrompt.QUARTERLY); | ||
// OrderBook orderBook = marketDataService.getOrderBook(new CurrencyPair(Currency.BTC, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should call using the result of |
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
xchange-stream-core/src/main/java/info/bitrich/xchangestream/core/StreamingTradeService.java
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
determineActiveContract
takes "BTC" rather than "XBT" I think (or should do)...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, works with either. Cool.