5 stars based on
For most Bitcoin traders, adjusting the price of advertisements by setting a margin works well enough. But if you are a high volume trader the price equation feature allows you more control over your price. This guide explains the fundamentals on how you can use complex price equations to your advantage to beat the competition.
Price equations allow you to automatically update your price with the price fluctuations of Bitcoin. They work by taking price information that we automatically fetch from market data sources Other Bitcoin local bitcoin exchange rate and updating the price of your advertisement as soon as new price information is fetched. To create a custom price equation you select your market data sources and combine or modify them using operators.
This means that even if one or many of the exchanges start giving erroneous information the price source will still give an accurate median price. Advertisement prices are on average updated once every five minutes.
When there is extra load on the service or if an API is slow to respond this process may take longer to run. The final price calculated from the price equation is for 1 BTC. Market data sources also always return the price for 1 Local bitcoin exchange rate. If the equation returns more than one value or no value, the equation is not valid and won't work. Market data sources may not always return a price if there is, for example, low to no recent volume in that market.
If an equation is not valid or does not fully resolve the advertisement will be turned off automatically. The first and most important part of your equation is the selection of market price source s. You should carefully choose which exchange you base your price on, you can find a list of all available market sources at the end of this guide. A simple equation only uses one market data source, the below market source takes the 24 hour average price from the Bitcoin exchange Bitstamp:. This is already on it's own a working equation, local bitcoin exchange rate to make some profit selling Bitcoin you will want to modify this with an operator.
Operators are different mathematical functions that you can use to adjust and change your price equation to fit your own needs. You can see the operators that are supported in the table below. The simplest equation local bitcoin exchange rate just a percentage markup on top of the market price.
The resulting equation looks like this:. If you buy your Bitcoin that you sell from two different exchanges, let's say Bitstamp and Bitfinex, you probably want to make sure that your Bitcoin price is based off of the exchange that has the higher price so that your margin stays correct.
Using two market data sources has the added benefit of protecting you in case one exchange experiences a sudden price crash while the other doesn't. To do this the max operator is useful.
It is used to choose the larger of two values given local bitcoin exchange rate it. To use the max operator you enter two values separated by a comma into the parenthesis. The values entered can be a market data source or any number. In our example we want to use the higher local bitcoin exchange rate of local bitcoin exchange rate different exchanges, Bitstamp and Bitfinex.
We then multiply the whole max operator with 1. This equation will first fetch pricing data from the two exchanges, Bitfinex and Bitstamp, and turn it into two numbers. The max operator then selects the more expensive price of the two. Finally, it multiplies that price with 1. If you're using a price source that is not in your own currency the final step is to convert it to the correct currency.
You can play around with your own equations using the field below. Choose which currency you trade in and enter any equation to see what the price would be. We have hundreds of market data sources available to use in your price equations. Here is a table that lists all available market data sources. For most sources we fetch six different prices: We recommend you use the avg average pricethe other price types have specific meaning and fluctuate often and can result in your price not being what you expect.
Each market data source always gives the price for one whole Bitcoin, this table shows the current price returned from each market data source and price type. In order to use the market price sources you need to take the data source name from the market column and add to it the price type.
For example, if you want to use the average bitfinexusd price you take the name of the market and add an underline and the text avg. If you want to trade your bitcoins for altcoins we provide market sources that return the price for one whole Bitcoin in the other cryptocurrency. Below you can find a table local bitcoin exchange rate lists all available altcoin market data sources. We fetch three different prices: This table shows the latest price returned from each market data source and price type.
For example, if you want to local bitcoin exchange rate the close poloniexeth price you take the name of the market and add an underline and the text close. You can get the exchange rate of 1 USD in other currencies using these data sources. To convert other currencies into USD, get the inverse e. If you have forgotten your username, try logging in with your email.
Minimum gives returns the smaller of the two values inside the parenthesis. You can chain min inside another to get the smallest value of multiple numbers. Maximum gives returns the larger of the two values inside the local bitcoin exchange rate.
You can chain max inside another local bitcoin exchange rate get the largest value of multiple numbers. Use radians for input. The constant pi is available local bitcoin exchange rate create neat radian values.