>> (p.1)
    Author Topic: Britcoin V2 Community Input  (Read 1726 times)
    phantomcircuit (OP)
    Sr. Member
    ****
    Offline Offline

    Activity: 463
    Merit: 252


    View Profile
    July 03, 2011, 09:27:36 AM
     #1

    There are a couple of design decisions to be made when creating an exchange.

    The first is how to internally account for trades.

    I have come up with 3 separate methods which each have their own advantages and disadvanatages.

    The first scheme is the way britcoin operates currently, what I have/what I want pairs.  This allows for a very simple representation and a very simple interface for users.

    This scheme results in rounding when calculating the rate at which the trade has been placed, this is unavoidable when using this representation.
    There is again potential for rounding when multiplying quantity*rate.
    This scheme results in 2 separate instances of rounding where others result in a single instance.

    The second scheme is to store quantity/rate/have_currency/want_currency.  This is closer to the normal forex market place, but allows for buying or selling a precise amount of either side of the trade.
    This results in rounding both when calculating quantity*rate and when matching 2 buy orders for inverse currency pairs (1/rate).

    The third scheme is the normal forex method, in which you have the currency pair/rate/quantity/buy or sell. There is no way to buy/sell a specific quantity of the base currency with this scheme.
    This results in rounding when calculating quantity*rate.


    So which method do people prefer?
Page 1
Viewing Page: 1