Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API 'gettrades' method #5976

Merged
merged 35 commits into from Feb 1, 2022
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
55a54f3
Add GetTrades proto message, + needed TradeInfo fields
ghubstan Jan 16, 2022
e6e944b
Add GrpcTradesService.getTrades service method
ghubstan Jan 16, 2022
b4fa52f
Add List<Trade> getTrades() to FailedTradesManager (w/out transitive …
ghubstan Jan 16, 2022
50bbbfe
Add List<Trade> getTrades() to TradeManager (w/out transitive jfx dep)
ghubstan Jan 16, 2022
a53fee3
Add List<OpenOffer> getCanceledOpenOffers() ClosedTradableManager
ghubstan Jan 16, 2022
5c21779
Add buyer/seller dep & status-desc fields to TradeInfoV1Builder
ghubstan Jan 16, 2022
a9e7484
Add buyer/seller dep & status-desc fields to TradeInfo
ghubstan Jan 16, 2022
fdd94fe
Remove commented code
ghubstan Jan 16, 2022
d98d795
Add server impl for gettrades (open|closed), refactor getrole methods
ghubstan Jan 16, 2022
4c7ae49
Format gettrades CLI outout
ghubstan Jan 16, 2022
ffa31b0
Support gRPC gettrades call in CLI
ghubstan Jan 16, 2022
3cd1e05
Try to display accurate status of closed trades, or "Pending" if stil…
ghubstan Jan 18, 2022
a5857e2
Re-set log level to INFO in apitest cases
ghubstan Jan 18, 2022
0ec0952
Remove trailing spaces
ghubstan Jan 20, 2022
2e7346a
Fix comments
ghubstan Jan 20, 2022
b10cb11
Display trade.txFee for BSQ swap trades
ghubstan Jan 20, 2022
69e6c9c
Remove duplicated buyer/seller proto fields (already exist no OfferInfo)
ghubstan Jan 20, 2022
2a3a298
Fix maker/taker fee column headers & value func defs
ghubstan Jan 20, 2022
6e02996
Fill out gettrades-help.txt
ghubstan Jan 22, 2022
fadaaf9
Display tx-fee from BsqSwapProtocolModel
ghubstan Jan 22, 2022
0e020e8
Add payout fields to trade proto msgs, show optional trade/tx fees in…
ghubstan Jan 23, 2022
3e14bd3
Change var name
ghubstan Jan 23, 2022
fdd91a8
Fix displayed bsq-swap's optional trade & tx fees
ghubstan Jan 23, 2022
2db20c0
Split BsqSwap tests into "buy" and "sell" tests
ghubstan Jan 23, 2022
fd0c4c2
Add BsqSwapSellBtcTradeTest
ghubstan Jan 23, 2022
89c4ab3
Use toTradeFeeBtc, not toTradeFeeBsq
ghubstan Jan 23, 2022
d902e77
Add Bisq license banners
ghubstan Jan 25, 2022
210d966
Fix method name
ghubstan Jan 25, 2022
4ab4c3d
Log exception and return "Not Available" when trade role cannot be found
ghubstan Jan 25, 2022
ef00a2c
Remove unused class
ghubstan Jan 25, 2022
4c8cec5
Push Trade->TradeModel mapping down from CoreApi into CoreTradesService
ghubstan Jan 25, 2022
f231aac
Sort API gettrades's response list by trade date
ghubstan Jan 26, 2022
ad638e3
Revert "Sort API gettrades's response list by trade date"
ghubstan Jan 27, 2022
8206425
Remove unnecessary casts
ghubstan Jan 27, 2022
111e39f
Sort the final, cumulative trades list in gRPC GetTrades service
ghubstan Jan 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 15 additions & 9 deletions core/src/main/resources/help/gettrades-help.txt
Expand Up @@ -2,26 +2,32 @@ gettrades

NAME
----
gettrades - get trade history
gettrades - get open, closed, or failed trades

SYNOPSIS
--------
gettrades
--currency-code=<usd|eur|bsq|xmr>
--category=<open|closed|failed>

DESCRIPTION
-----------
TODO
Displays list of all currently open, closed, or failed trades.

OPTIONS
-------
--currency-code
TODO
--category
The category of trade summaries: open (pending), closed (historical), and failed.
The default category option value is open.

EXAMPLES
--------
To see ... :
$ ./bisq-cli --password=xyz --port=9998 gettrades --currency-code
To see summaries of all open (pending) trades:
$ ./bisq-cli --password=xyz --port=9998 gettrades
OR
$ ./bisq-cli --password=xyz --port=9998 gettrades --category=open

To see ... :
$ ./bisq-cli --password=xyz --port=9998 gettrades ---currency-code
To see summaries of all closed (historical) trades:
$ ./bisq-cli --password=xyz --port=9998 gettrades ---category=closed

To see summaries of all failed trades:
$ ./bisq-cli --password=xyz --port=9998 gettrades ---category=failed