API service

Introduction

The MajesticBank API allows you to automate the receipt of information about the exchange rates of currencies, created orders, presented on the Exchange service, create orders and manage them using it.

List of functions

Prefix for API requests is /api/v1/
Both GET and POST requests are supported.

Get Rates /rates Getting a list of all currencies that are available on MajesticBank
Calculate order /calculate Information about a currency pair with a set amount of funds.
Track Order /track Get information and update order.
Create Order /exchange Creating exchange orders.


01 Get Rates

GET or POST      https://wwwewwwstage.majesticbank.sc/api/v1/rates



Response


BTC-XMR -> number


XMR-BTC -> number



02 Get limits

GET or POST      https://wwwewwwstage.majesticbank.sc/api/v1/limits



Parameters


from_currency -> required - string - Example: BTC



Response


min -> number


max -> number


03 Calculate order

GET or POST      https://wwwewwwstage.majesticbank.sc/api/v1/calculate



Parameters


from_amount or receive_amount -> required - number - one of those two - Example: 0.2


from_currency -> required - string - Example: BTC


receive_currency -> required - string - Example: XMR



Response


from_currency -> string


from_amount -> number


receive_currency -> string


receive_amount -> number


04 Create order

GET or POST      https://wwwewwwstage.majesticbank.sc/api/v1/exchange



Parameters


from_amount -> required - number - Example: 0.2


from_currency -> required - string - Example: BTC


receive_currency -> required - string - Example: XMR


receive_address -> required - string - Example: Valid Bitcoin Address


referral_code -> required - string - Example: H7g9J2



Response


trx -> string


from_currency -> string


from_amount -> number


receive_currency -> string


receive_amount -> number


address -> string


expiration -> number (minutes) - 600


05 Create Fixed / Pay order

GET or POST      https://wwwewwwstage.majesticbank.sc/api/v1/pay


Fixed rate for 10 minutes, usefull for payments



Parameters


from_amount or receive_amount -> required - number - one of those two - Example: 0.2


from_currency -> required - string - Example: BTC


receive_currency -> required - string - Example: XMR


receive_address -> required - string - Example: Valid Bitcoin Address


referral_code -> required - string - Example: H7g9J2



Response


trx -> string


from_currency -> string


from_amount -> number


receive_currency -> string


receive_amount -> number


address -> string


expiration -> number (minutes) - 10


06 Track order

GET or POST      https://wwwewwwstage.majesticbank.sc/api/v1/track



Parameters


trx -> required - string - Example: RUQ727JVN851



Response


trx -> string


status -> string


from_currency -> string


from_amount -> number


receive_currency -> string


receive_amount -> number


address -> string


received -> number


confirmed -> number


07 Usage

curl -X POST -F 'trx=EFU4DYUUR26A' https://wwwewwwstage.majesticbank.sc/api/v1/track/


curl https://wwwewwwstage.majesticbank.sc/api/v1/track?trx=EFU4DYUUR26A