While the regular margin pricing allows traders to set simple margins above or below the coinmarket cap price, some traders are looking to use price data from specific exchanges, or more complex equations to price their trade advertisements. This is where advanced pricing is useful.
You can access various prices from the following exchanges:
- Bitfinex
- Kraken
- Bitstamp
- Binance
- Bittrex
- Coinbase
- Polinex
- HitBTC
- CEXio
- Coinone
More may be added soon.
To fetch prices from these exchanges you will need to use the following syntax
Market.exchange.pair.type
market. = This is typed to signify that you want to fetch an exchange price
exchange. = The specific cryptocurrency exchange you are fetching from
pair. = the pairing that you want to use (i.e. btcusd).
type. = The type of price you want to fetch from this pairing on this exchange. (i.e. last, high, low , bid, ask, etc.)
An example of a valid formula is market.binance.btcusdt.last
Once you start typing the syntax out, a dropdown will appear with helpful suggestions to minimize the amount of typing needed.
You can also access fiat exchange rates. This is done using the following syntax: fiat_in_fiat where the fiat is the 3 letter ticker for that fiat currency. For example, if you would like to use the Euro/USD rate, this can be done by using eur_in_usd
Many exchanges don’t have prices outside USD, USDT, or EUR so using the fiat exchange rates is the perfect way to price in your local currency. All fiat exchange rate data is taken from openexchangerates.org
You can also access coinmarketcap.com prices for the cryptocurrencies listed on the platform using the following syntax: crypto_in_fiat where crypto is the 3 or 4 letter ticker from coinmarketcap.com. For example, if you want to select the LCS/USD rate, you would type lcs_in_usd, and if you wanted the DASH/USD rate you would type dash_in_usd.
If you want to easily translate coinmarketcap prices into currencies outside of those supported by coinmarketcap, you can do this by simply selecting alternative fiat currencies to USD like above. For example, typing eth_in_nzd will provide a cross price of ETH/USD from coimmarketcap multiplied by USD/NZD from openexchangerates.org providing you with the Ethereum price in New Zealand Dollars.
You can also use any (or a combination) of the following mathematical operators:
Multiplication |
* |
Addition |
+ |
Subtraction |
- |
Division |
/ |
Minimum |
min(x,y,....,z) |
Maximum |
max(x,y,....,z) |
Brackets |
( ) |
Using the above operators it is simple to create a huge variety of pricing methods to suit your needs.
It is important to note that regardless of the exchange data or operators you use, your trade will always be priced in the fiat currency that you have created the trade in. For example, say BTC is 8000 USD and you are creating a trade in euro. Using only the syntax btc_in_usd will price your trade at 8000 Euro. So ensure to always convert into the fiat currency that you are trading with.
Comments
0 comments
Article is closed for comments.