API FixedFloat
Introduction
The FixedFloat API allows you to automate the receipt of information about the exchange rates of currencies, created orders, presented on the FixedFloat service, create orders and manage them using it.
API KEY
and SECRET KEY
are required to access the API methods.
Getting the API key
To release a token, follow these steps:
- Open the page https://fixedfloat.com/apikey
- Enter your E-mail, if you want to receive notifications about changes in the API
- Confirm reCAPTCHA
- Click "Generate"
- Wait 60 seconds
- Copy
API KEY
andSECRET KEY
and save in a safe place. Use this data to query the FixedFloat API.
Request Authorization and API call example
The resulting API KEY
should be sent in the X-API-KEY
header with each API call. An additional parameter signature
in the X-API-SIGN header is also required.
To get the signature
parameter, you must use your SECRET KEY
as the HMAC SHA256
operation key and totalParams
as its value.
totalParams
is defined as the query string
concatenated with the request body
Example:
- queryString:
from=ETH&to=BTC
- HMAC SHA256 signature:
[linux]$ echo -n "from=ETH&to=BTC" | openssl dgst -sha256 -hmac "qVeyDheFpFavNy8kSy1vJc9SG8FZnFeWnJDf9ACx" (stdin)= a25b61d23c4811ead7738c2124a6d06ebb4b8a4d695da46a2ad8965553d09333
- curl command:
[linux]$ curl -H "X-API-KEY: pjFBsaK1HJwQYjZQyy8heEnyyt2G4KyfvDF29lMP" -H "X-API-SIGN: a25b61d23c4811ead7738c2124a6d06ebb4b8a4d695da46a2ad8965553d09333" -d "from=ETH&to=BTC" -X POST https://fixedfloat.com/api/v1/getPair
API for crypto currency exchange. All methods have the response structure:
code | number Status code. 0 – OK, else error | |
msg | string Status message | |
data | object Data response | |
Request limits
The limit per minute is 250 units of weight.
A createOrder
request costs 50 units of weight. All others requests by 1 unit of weight
List of methods
All methods
Get Currencies | Getting a list of all currencies that are available on FixedFloat.com. |
Get Price | Information about a currency pair with a set amount of funds. |
Get Order | Receiving information about the order. |
Set emergency | Emergency Action Choice |
Create Order | Creating exchange orders. |
Get Currencies
Getting a list of all currencies that are available on FixedFloat.com.
Response
array | ||||||||||||||||||||||||||||||
|
Get Price
Information about a currency pair with a set amount of funds.
Parameters
fromCurrency required |
From currency Example:ETH .
|
string |
|
fromQty optional |
amount Example:0.001 .
|
number |
|
toCurrency required |
To currency Example:BTC .
|
string |
|
toQty optional |
amount Example:0.001 .
|
number |
|
type required |
order type: fixed or float Example:fixed .
|
string |
Response
error | number price receipt error code | ||||||||||||||||||||||
from | object Information about the currency you want to exchange | ||||||||||||||||||||||
| |||||||||||||||||||||||
to | object information about the currency to which you want to exchange | ||||||||||||||||||||||
|
Get Order
Receiving information about the order.
Parameters
id required |
Order ID Example:5VSKHM .
|
string |
|
token required |
Security token of order Example:YQR2XrznWkuVHsAiBSQeAnI4t0EQGj1HElYFlF2O .
|
string |
Response
id | string order id | ||||||||||||||||||||||||||||||||||||||||
type | string order type | ||||||||||||||||||||||||||||||||||||||||
step | string order step | ||||||||||||||||||||||||||||||||||||||||
from | object currency information for exchange | ||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
to | object Information for the currency to be exchanged | ||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
emergency | object emergency information (if the user sent later, less, more currency, etc.) | ||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
rate | number exchange rate | ||||||||||||||||||||||||||||||||||||||||
rateRev | number Exchange rate for reverse exchange | ||||||||||||||||||||||||||||||||||||||||
status | string order status
| ||||||||||||||||||||||||||||||||||||||||
string email address to subscribe for updates | |||||||||||||||||||||||||||||||||||||||||
reg | timestamp time of order creation | ||||||||||||||||||||||||||||||||||||||||
start | timestamp receive time | ||||||||||||||||||||||||||||||||||||||||
finish | timestamp order execution time | ||||||||||||||||||||||||||||||||||||||||
update | timestamp time of the last transaction update | ||||||||||||||||||||||||||||||||||||||||
expiration | timestamp allowable time to pay for the order | ||||||||||||||||||||||||||||||||||||||||
left | number the number of seconds left to pay the order |
Set emergency
Emergency Action Choice
Parameters
id required |
Order ID Example:5VSKHM .
|
string |
|
token required |
Security token of order Example:YQR2XrznWkuVHsAiBSQeAnI4t0EQGj1HElYFlF2O .
|
string |
|
choice required |
EXCHANGE or REFUND Example:EXCHANGE .
|
string |
|
address optional |
refund address, required if choice="REFUND" Example:0x4e5b2e1dc63f6b91cb6cd759936495434c7e972f .
|
string |
Response
boolean TRUE if successful |
Create Order
Creating exchange orders.
Parameters
fromCurrency required |
currency code which user sends Example:ETH .
|
string |
|
toCurrency required |
currency code that is sent to the user Example:BTC .
|
string |
|
fromQty optional |
amount of base currency which user sends Example:0.08 .
|
number |
|
toQty optional |
amount of currency that is sent to the user Example:0.0025 .
|
number |
|
toAddress required |
a destination address to which the funds will be dispatched upon the successful completion of the Order Example:1NdCTQ1ufXCZp6CHhDJGNvHpGztoYxWWhb .
|
string |
|
extra optional |
if you need to specify a Memo or Destination Tag when sending, you should specify it here. This parameter can be omitted by specifying the MEMO or Destination Tag in toAddress separated by a colon. Example:54132 .
|
string |
|
type required |
order type: fixed or float Example:fixed .
|
string |
Response
id | string order id | |||||||||||||||||||
token | string security token with which you can receive and manage order information. | |||||||||||||||||||
type | string order type | |||||||||||||||||||
step | string order step | |||||||||||||||||||
from | object currency information for exchange | |||||||||||||||||||
| ||||||||||||||||||||
to | object Information for the currency to be exchanged | |||||||||||||||||||
| ||||||||||||||||||||
rate | number exchange rate | |||||||||||||||||||
rateRev | number Exchange rate for reverse exchange | |||||||||||||||||||
status | string order status | |||||||||||||||||||
string email address to subscribe for updates | ||||||||||||||||||||
reg | timestamp time of order creation | |||||||||||||||||||
expiration | timestamp allowable time to pay for the order | |||||||||||||||||||
left | number the number of seconds left to pay the order |