by Haron » Wed Jun 22, 2016 12:43 pm
Hooray!!! ***Raises flag and pops champagne***
OK, here are some suggestions to how the details may work. NOTE: This system will work even better with Credit Cents, but for a credit market only, I think it will work nice with only "whole" credits as well. If it is to be expanded to voodoo cards later, credit cents will be needed.
1) Placing a sell order (selling credits). The player enters the number of credits he wants to sell, and the price he wants to sell them for. If this price is lower than the current lowest buy price, some or all are sold (see point 4), otherwise, they are entered into the market, and removed from the players credits at hand.
2) Placing a buy order (buying credits). The player enters the number of credits he wants to buy, and the price he is willing to pay for them. If this is higher than the current highest sell price, some or all are bought (see point 4), otherwise, the order is entered into the market, and the gold is removed from the players treasury.
3) The market structure. Here, the available orders are presented. Four columns are needed, two for SELL orders, and two for BUY orders. For both, the "depth" (number of credits) for each price offered is shown. Example:
BUYING SELLING
DEPTH PRICE DEPTH PRICE
50 100.000 40 100.001
43 99.999 65 100.002
100 99.998 80 100.003
60 100.003 102 100.004
So, there are 40 credits for sale at 100.001 gc each, 60 for sale at 100.002 gc each, and so on. Also, you may sell 50 credits for 100.000, another 43 for 99.999 and so on.
4) Making a sale. I'll use the above list as an example. If this is the current market, and I want to buy 100 credits, I enter a buy order of 100 credits for a price of 100.002. Then, I'll automatically buy the cheapest credits first: 40 credits for 100.001 gc each. Then, I'll but 60 credits for 100.002 credits each. After this, the market would look like this:
BUYING SELLING
DEPTH PRICE DEPTH PRICE
50 100.000 5 100.002
43 99.999 80 100.003
100 99.998 102 100.004
60 100.003
And I would have gotten 100 credits for 10.000.160 gc (just over 10M gc). Now, if I had tried to buy 200 credits for the price of 100.002 gc, I would only have been able to buy 105, since only 105 were for sale at 100.002 gc or lower. The remaining 95 credits would be entered as a BUY order, and the market would look like this:
BUYING SELLING
DEPTH PRICE DEPTH PRICE
95 100.002 80 100.003
50 100.000 102 100.004
43 99.999
100 99.998
60 100.003
5) The order of sales: Here we deviate a little from real world stock markets. I suggest that the orders are handled in a first come, first served manner. So, if I was the first to place a sell order of 20 credits for 100.001 gc each, then later BigTea entered a sell order of 1000 credits for 100.001 gc each, and someone wanted to buy 60 credits for 100.001 gc, he would in effect buy 20 from me and 40 from BigTea.
6) Receiving credits and gc. This is no problem in the "real world": You simply get your stocks/money immediately. However, getting 10M gc while asleep is a problem in PG. I therefore suggest these money be placed in a bank account, which must be large enough to hold your sale. This can also be where banks come in: You have to buy/sell THROUGH a certain bank, and they may charge a tiny percentage of the sale as commission. So, you have a "Credit Exchange" account at Morgans Bank, which can hold 50M gc. You may then place sell orders through this bank for up to 50M gc. Whenever you sell credits, gold is transferred to your bank account. Credits can be given directly to players, since they are not in danger of being stolen.
7) Altering orders. In the "real world", you can at any time withdraw any order, or place new orders. However, in PG, "hiding gc" is an issue. So, placing huge amounts of underpriced buy orders, then withdrawing them, must be avoided. This can, again, be achieved through the banks. If you have to place your buy orders through a bank, you can only place buy orders for an amount equal to that banks holding capacity. This gold is "locked", but still takes up "space" in your bank. And the banks can, again, demand a tiny percentage of each transaction, thus, banks can get a little bit both from sellers and buyers of credits. If this is implemented, any order can be terminated at any time without the abuse of "hiding" gc.
Well, this is a first draft, anyway. Lots of text, I know, but I wanted to get the details in there. Does this seem like a decent starting point for a "stock exchange"?
EDIT: Sorry about the poor tables. Does anyone know how to make good ones?
The T'zak Ryn offers Naval Combat Solutions for the Quality Conscious Customer