-
Notifications
You must be signed in to change notification settings - Fork 9
/
order_tools.html
78 lines (73 loc) · 3.51 KB
/
order_tools.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<title>Stellar order tools</title>
<meta charset="UTF-8" />
<script src="js/aes.js"></script>
<script src="js/stellar-sdk.min.js"></script>
<script src="js/order_tools.js"></script>
</head>
<body>
<h3>Stellar Orders Tool Set</h3><br />
also refresh bal:<input id="change_network" type="button" value="change_network" />
<select name="network" id="network" value='mss_server'>
<option>mss_server</option>
<option>testnet</option>
<option>live</option>
</select>
<input id="current_mode" value="current_mode?" /><br />
MSS-server socket Status: <span id="status"></span><br />
MSS-server URL: <input id="url" size="50" /><br />
<input id="open" type="button" value="Connect" />
<input id="close" type="button" value="Disconnect" /><br />
<input id="save" type="button" value="save_seed" />
<input id="restore" type="button" value="restore_seed" />
<input id="list_seed_keys" type="button" value="list_seed_keys" /><br />
pass phrase:<input id="pass_phrase" size="60" /><br />
seed nick name or public ID:<input id="seed_nick" size="60" value = "seed" /><br />
seed:<input id="seed" size="60" /><br />
account:<input id="account" size="60" /><br />
account native balance: <input id="balance" size="40" /><br />
______________________________________________________<br />
Offer Entry: Use asset XLM with no Issuer for native<br />
Buy asset: <input id="buy_asset" size="6" /> Issuer: <input id="buy_issuer" size="60" />
Balance: <input id="buy_asset_bal" size="10" /><br />
Sell asset: <input id="sell_asset" size="6" /> Issuer: <input id="sell_issuer" size="60" />
Balance: <input id="sell_asset_bal" size="10" /><br />
Amount: <input id="amount" size="6" /> of sell asset we are selling<br />
we would get: <input id="will_get" size="6" /> Buy assets at this Amount and Offer price <br />
averge Ask Price: <input id="averge_price" size="6" /> they will get for 1 Sell asset, on averge for this order size Amount<br />
max Ask Price: <input id="ask_price" size="6" /> they want for 1 Buy asset, that is needed to buy this order size Amount<br />
Offer Price: <input id="offer_price" size="6" /> we will sell 1 Sell asset for this many Buy asset<br />
<input id="submit_offer" type="button" value="submit_bid_offer" />
<input id="get_market_price" type="button" value="get_market_price" />
<input id="full_search" type="button" value="search_open_offers" />
<input id="search_offer_hist" type="button" value="search_offer_hist" />
<select name="closed_state" id="closed_state" >
<option>canceled</option>
<option>traded</option>
<option>all</option>
</select><br />
______________________________________________________<br />
Cancel Offer: <br />
offerId: <input id="offerid" size="6" /> <br />
<input id="cancel_offer" type="button" value="cancel_offer" /> <input id="show_offer" type="button" value="show_offer" /><br />
______________________________________________________<br />
Order Book Search: Use asset XLM with no Issuer for native <br />
sort order <select name="sort" id="sort" >
<option>ASC</option>
<option>DESC</option>
</select>
<select name="byesell" id="buysell" >
<option>buy</option>
<option>sell</option>
</select>
<input id="start_search" type="button" value="start_search" /><br />
Asset <input id="asset" size="12" />
Issuer <input id="issuer" size="60" /><br />
____________________________________________________<br />
<div style="width:800px;height:300px;line-height:3em;overflow:scroll;padding:10px;">
<span id="message"></span>
</div>
</body>
</html>