[bisq-network/bisq] Add 'placeoffer' method (#4574)

Stan notifications at github.com
Tue Sep 29 19:40:35 UTC 2020


CLI example:

Start daemons:

	$ ./bisq-apitest --apiPassword=xyz --supportingApps=bitcoind,seednode,arbdaemon,alicedaemon  --shutdownAfterTests=false

Get the dummy payment account id needed for create offer:

	$ ./bisq-cli --password=xyz getpaymentaccts

	Name                Currency  Payment Method  ID                                                    
	PerfectMoney dummy       EUR  PERFECT_MONEY   c1ca87a6-918f-4a57-960a-979596dee7f6                
	ETH dummy                ETH  BLOCK_CHAINS    d55040c4-aff4-4ed4-a900-73df578f9d2a                

Create and cache a new offer, then examine it:

	$ ./bisq-cli --password=xyz createoffer c1ca87a6-918f-4a57-960a-979596dee7f6 sell usd 0.125 0.125 true 0.00 0.15

	Buy/Sell  Price in usd for 1 BTC  BTC(min - max)            usd(min - max)  Payment Method  Creation Date (UTC)   ID
	SELL                 10,735.0905  0.12500000                         1,342  Perfect Money   2020-09-29T19:24:27Z  NAUGWFYZ-ddbc5348-2a9e-4ba6-a9b1-7cc10e622d9e-139   
	
	
Place the offer with offer-id param, and a security deposit param as a % double value:

	$ ./bisq-cli --password=xyz placeoffer NAUGWFYZ-ddbc5348-2a9e-4ba6-a9b1-7cc10e622d9e-139  0.15	

	offer placed
	

Look at the sell/usd offer just placed:	

	$ ./bisq-cli --password=xyz getoffers sell usd	
	
	Buy/Sell  Price in usd for 1 BTC  BTC(min - max)            usd(min - max)  Payment Method  Creation Date (UTC)   ID
	SELL                 10,735.0905  0.12500000                         1,342  Perfect Money   2020-09-29T19:24:27Z  NAUGWFYZ-ddbc5348-2a9e-4ba6-a9b1-7cc10e622d9e-139
	

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4574#issuecomment-700943148
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200929/6df46a17/attachment-0001.html>


More information about the bisq-github mailing list