Formulae: Difference between revisions

From Bittylicious
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


Figures from other Bitcoin markets can be used in the equation, and these take the form ''market''_''currency''_''type'', e.g. ''mtgox_GBP_2bsr''.
Figures from other Bitcoin markets can be used in the equation, and these take the form ''market''_''currency''_''type'', e.g. ''mtgox_GBP_2bsr''.
==Special Functions==
===bitty_lowest(''<num BTC>'')===
Returns the price of the lowest active seller with same offer characteristics as your. They must have at least ''<num BTC>'' available for sale.
Note that this is updated every time the formulae are updated (every ten seconds) so it may take a few iterations for this value to stabilise.
Also note that this should never be used on its own as it will return zero if you are the only active offer. Two recommended ways of using this with other functions are:
* Matching other seller offers with a minimum price of 60: ''max(bitty_lowest(1), 60)''
* Beating other seller offers by 0.50 down to a minimum price of 60 ''max(bitty_lowest(1) - 0.5, 60)''


==Markets==
==Markets==

Revision as of 11:17, 8 October 2013

The price formula text box allow for the price of your Bitcoins to dynamically alter as market conditions change.

The calculation process allows for a wide variety of mathematical operators typical in computing terminology (e.g. * for multiplied by and ^ for to the power of). Other available functions include:

  • max - Maximum value from the parameters, e.g. max(80, mtgox_GBP_buy)
  • min - Minimum value from the parameters
  • average - Average (mean) value from the parameters

Figures from other Bitcoin markets can be used in the equation, and these take the form market_currency_type, e.g. mtgox_GBP_2bsr.

Special Functions

bitty_lowest(<num BTC>)

Returns the price of the lowest active seller with same offer characteristics as your. They must have at least <num BTC> available for sale.

Note that this is updated every time the formulae are updated (every ten seconds) so it may take a few iterations for this value to stabilise.

Also note that this should never be used on its own as it will return zero if you are the only active offer. Two recommended ways of using this with other functions are:

  • Matching other seller offers with a minimum price of 60: max(bitty_lowest(1), 60)
  • Beating other seller offers by 0.50 down to a minimum price of 60 max(bitty_lowest(1) - 0.5, 60)

Markets

MtGox

  • mtgox_GBP
  • mtgox_EUR
  • mtgox_USD

Types

  • sell - Lowest price that coins are sold at on the market
  • buy - Highest price that coins are bought at on the market
  • 2bbn - The price of buying 2 BTC
  • 2bbr - The price of buying 2 BTC including typical fees
  • 2bsn - The price you can sell 2 BTC at
  • 2bsr - The price you can sell 2 BTC at including typical fees
  • last - The last price a trade was completed at