FortuneX | DEX
API

Return all the trading pairs supported by Fortunex-Dex

URL: https://fortune.exchange/availablepairs

Return data example:

"Status":1,"message":"Success",

"combinations": ["FTX_USDX","BTC_ETH","ETH_WAVES","YESCOIN_BTC","BTC_WAVES","BTC_FTX","BTC_USDX","ETH_USDX","ETH_FTX","WAVES_FTX","WAVES_USDX"]

Returns all markets' fee, minimum order total amount, price decimal places.

URL: https://fortune.exchange/api/marketinfo

Return data example:

"Status":1,"message":"Success",

"combinations": [{"name":"Fortunex","min_buy":"0.0001","min_sell":"0.0001","fee":"0.2500"}]

Returns market details including pair, coin name, coin symbol, last price, trading volume, coin supply, coin market cap, price trend, etc.

URL: https://fortune.exchange/api/marketlist

Return data example:

"Status":1,"message":"Success",

"combinations": [{"name":"Bitcoin","pair":"BTC_ETH","rate":"1.0000","volume24hr":null,"vol_a":"BTC","vol_b":"ETH","min_buy":0,"min_sell":0,"fee":0.25,"last_price":"1.00000000","change24hr":"0.0000"}]

returns the tickers for all the supported trading pairs at once, cached in 10 seconds

URL: https://fortune.exchange/api/tickers

Return data example:

"Status":1,"message":"Success",

"combinations": {"ETH_BTC":{"pair":"ETH_BTC","last":"0.03175284","lowestAsk":"0.02795000","highestBid":"0.04869582","volume24hr":"122.07110630"}}}

returns the current ticker for the selected currency, cached in 10 seconds:

URL: https://fortune.exchange/api/customticker/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies. Links:

https://fortune.exchange/api/customticker/FTX_USDX

https://fortune.exchange/api/customticker/BTC_ETH

https://fortune.exchange/api/customticker/ETH_WAVES

https://fortune.exchange/api/customticker/YESCOIN_BTC

https://fortune.exchange/api/customticker/BTC_FTX

https://fortune.exchange/api/customticker/BTC_USDX

https://fortune.exchange/api/customticker/ETH_USDX

https://fortune.exchange/api/customticker/ETH_FTX

https://fortune.exchange/api/customticker/WAVES_FTX

https://fortune.exchange/api/customticker/WAVES_USDX

https://fortune.exchange/api/customticker/AFIN_BTC

https://fortune.exchange/api/customticker/AFIN_ETH

https://fortune.exchange/api/customticker/AFIN_WAVES

https://fortune.exchange/api/customticker/AFIN_USDX

https://fortune.exchange/api/customticker/AFIN_FTX

https://fortune.exchange/api/customticker/YESCOIN_FTX

https://fortune.exchange/api/customticker/YESCOIN_USDX

https://fortune.exchange/api/customticker/BHV_BTC

https://fortune.exchange/api/customticker/BHV_ETH

https://fortune.exchange/api/customticker/BHV_FTX

https://fortune.exchange/api/customticker/BHV_USDX

https://fortune.exchange/api/customticker/STRS_ETH

https://fortune.exchange/api/customticker/STRS_BTC

https://fortune.exchange/api/customticker/STRS_FTX

https://fortune.exchange/api/customticker/STRS_USDX

https://fortune.exchange/api/customticker/QCASH_BTC

https://fortune.exchange/api/customticker/QCASH_FTX

https://fortune.exchange/api/customticker/QCASH_USDX

Return data example:

"Status":1,"message":"Success",

"combinations": {"ETH_BTC":{"pair":"ETH_BTC","last":"0.03175284","lowestAsk":"0.02795000","highestBid":"0.04869582","volume24hr":"122.07110630"}}}

Return the market depth including ask and bid orders:

URL: https://fortune.exchange/api/orderbook/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies. Links:

https://fortune.exchange/api/customticker/FTX_USDX

https://fortune.exchange/api/customticker/BTC_ETH

https://fortune.exchange/api/customticker/ETH_WAVES

https://fortune.exchange/api/customticker/YESCOIN_BTC

https://fortune.exchange/api/customticker/BTC_FTX

https://fortune.exchange/api/customticker/BTC_USDX

https://fortune.exchange/api/customticker/ETH_USDX

https://fortune.exchange/api/customticker/ETH_FTX

https://fortune.exchange/api/customticker/WAVES_FTX

https://fortune.exchange/api/customticker/WAVES_USDX

https://fortune.exchange/api/customticker/AFIN_BTC

https://fortune.exchange/api/customticker/AFIN_ETH

https://fortune.exchange/api/customticker/AFIN_WAVES

https://fortune.exchange/api/customticker/AFIN_USDX

https://fortune.exchange/api/customticker/AFIN_FTX

https://fortune.exchange/api/customticker/YESCOIN_FTX

https://fortune.exchange/api/customticker/YESCOIN_USDX

https://fortune.exchange/api/customticker/BHV_BTC

https://fortune.exchange/api/customticker/BHV_ETH

https://fortune.exchange/api/customticker/BHV_FTX

https://fortune.exchange/api/customticker/BHV_USDX

https://fortune.exchange/api/customticker/STRS_ETH

https://fortune.exchange/api/customticker/STRS_BTC

https://fortune.exchange/api/customticker/STRS_FTX

https://fortune.exchange/api/customticker/STRS_USDX

https://fortune.exchange/api/customticker/QCASH_BTC

https://fortune.exchange/api/customticker/QCASH_FTX

https://fortune.exchange/api/customticker/QCASH_USDX

Return data example:

"Status":1,"message":"Success",

"asks":[ [0.2377, 4.07172355], [0.32659, 0.00203397], [0.26878, 1], [3.54878, 0.0672], [6.36878, 0.001] ],

"bids":[ [0.69898, 0.0477], [2.6548, 0.35714018], [6.7877, 2.56222976], [6.848, 0.0015], [7.9898, 0.1] ]

Return the most recent 80 trade history records:

URL: https://fortune.exchange/api/tradehistory/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies. Links:

https://fortune.exchange/api/customticker/FTX_USDX

https://fortune.exchange/api/customticker/BTC_ETH

https://fortune.exchange/api/customticker/ETH_WAVES

https://fortune.exchange/api/customticker/YESCOIN_BTC

https://fortune.exchange/api/customticker/BTC_FTX

https://fortune.exchange/api/customticker/BTC_USDX

https://fortune.exchange/api/customticker/ETH_USDX

https://fortune.exchange/api/customticker/ETH_FTX

https://fortune.exchange/api/customticker/WAVES_FTX

https://fortune.exchange/api/customticker/WAVES_USDX

https://fortune.exchange/api/customticker/AFIN_BTC

https://fortune.exchange/api/customticker/AFIN_ETH

https://fortune.exchange/api/customticker/AFIN_WAVES

https://fortune.exchange/api/customticker/AFIN_USDX

https://fortune.exchange/api/customticker/AFIN_FTX

https://fortune.exchange/api/customticker/YESCOIN_FTX

https://fortune.exchange/api/customticker/YESCOIN_USDX

https://fortune.exchange/api/customticker/BHV_BTC

https://fortune.exchange/api/customticker/BHV_ETH

https://fortune.exchange/api/customticker/BHV_FTX

https://fortune.exchange/api/customticker/BHV_USDX

https://fortune.exchange/api/customticker/STRS_ETH

https://fortune.exchange/api/customticker/STRS_BTC

https://fortune.exchange/api/customticker/STRS_FTX

https://fortune.exchange/api/customticker/STRS_USDX

https://fortune.exchange/api/customticker/QCASH_BTC

https://fortune.exchange/api/customticker/QCASH_FTX

https://fortune.exchange/api/customticker/QCASH_USDX

Return data example:

"Status":1,"message":"Success",

"trade_history": [ "tradeID": 1, "date": "2018-07-18 12:00:25", "type": "Buy", "rate": 0.07220180, "amount": 0.10000000, "total": 0.00723823 ],

Return list of all pairs traded on exchange:

URL: https://fortune.exchange/api/products

Replace [CURR_A] and [CURR_B] with the selected currencies.

Return data example:

"Status":1,"message":"Success",

"combinations":[{"id":1,"fromSymbol":"FTX","toSymbol":"USDX"}]

Return historical trades executed. Trades returned in ascending order. Option available to query historical trades based on tradeID, default is to return latest 100 trades.

URL: https://fortune.exchange/api/tradedetails/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Return data example:

"Status":1,"message":"Success",

"trade_history":[{"id":774,"timestamp":1542223980,"price":"0.5900","amount":"100.0000","type":"Buy"}]

Response value

RESPONSE PARAMETER TYPE DESCRIPTION
Order type string Buy or sell
Amount Float Amount of trade
Price Float Price of trade
Fees Float Fee of trade
Minimum amount Float Minimum trade amount

8. Error code

Error codes details from system :

ERROR CODES DESCRIPTION
1 Success
2 Invalid request
3 Currency is not supported
4 Empty params
5 Internal error, please report to administrator