import 'package:bind_api/api.dart';All URIs are relative to https://api.thebind.uk/v1
| Method | HTTP request | Description |
|---|---|---|
| cancelLimitOrder | POST /crypto/exchange/limit_orders/{order_id}/cancel | Cancel given limit order |
| estimateCryptoExchange | POST /crypto/exchange/estimate/ | Estimate exchange of assets. One of assets has to be a cryptocurrency |
| getCryptoExchangeRate | GET /crypto/exchange/rate/{from}/{to}/ | Exchange rate between two given assets (at least one of them is crypto) |
| getExchangeRate | GET /fiat/exchange/rate/{from}/{to}/ | Exchange rate between two given currencies |
| getFearGreed | GET /crypto/assets/{asset_id}/fear_greed/ | Get fear and greed rates for given asset (results of votes if crypto asset will go up or down) |
| getLimitOrdersList | GET /crypto/exchange/limit_orders | Get list of limit orders for current user |
| performCryptoExchange | POST /crypto/exchange/ | Perform exchange of assets. One of assets has to be a cryptocurrency |
| performExchange | POST /fiat/exchange/ | Perform exchange operation |
| putLimitOrder | POST /crypto/exchange/limit_orders | Put limit order to the system. Order will be executed later |
| voteFearGreed | PATCH /crypto/assets/{asset_id}/fear_greed/ | Vote if this crypto asset goes up or down today |
LimitOrder cancelLimitOrder(orderId, cancelLimitOrderRequest)
Cancel given limit order
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final String orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | id of a limit order
final CancelLimitOrderRequest cancelLimitOrderRequest = ; // CancelLimitOrderRequest |
try {
final response = api.cancelLimitOrder(orderId, cancelLimitOrderRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->cancelLimitOrder: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| orderId | String | id of a limit order | |
| cancelLimitOrderRequest | CancelLimitOrderRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CryptoExchangeEstimationResult estimateCryptoExchange(cryptoExchangeRequest)
Estimate exchange of assets. One of assets has to be a cryptocurrency
Only one of amounts (source or target) must be given
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final CryptoExchangeRequest cryptoExchangeRequest = ; // CryptoExchangeRequest |
try {
final response = api.estimateCryptoExchange(cryptoExchangeRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->estimateCryptoExchange: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| cryptoExchangeRequest | CryptoExchangeRequest | [optional] |
CryptoExchangeEstimationResult
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
num getCryptoExchangeRate(from, to)
Exchange rate between two given assets (at least one of them is crypto)
How much of asset "to" you get for asset "from"
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final String from = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final String to = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
try {
final response = api.getCryptoExchangeRate(from, to);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->getCryptoExchangeRate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| from | String | ||
| to | String |
num
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
num getExchangeRate(from, to)
Exchange rate between two given currencies
How much of currency "to" you get for currency "from"
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final String from = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final String to = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
try {
final response = api.getExchangeRate(from, to);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->getExchangeRate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| from | String | ||
| to | String |
num
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FearGreed getFearGreed(assetId)
Get fear and greed rates for given asset (results of votes if crypto asset will go up or down)
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final String assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | id of a crypto asset
try {
final response = api.getFearGreed(assetId);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->getFearGreed: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| assetId | String | id of a crypto asset |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList getLimitOrdersList(asset)
Get list of limit orders for current user
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final String asset = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | asset for filtering limit orders
try {
final response = api.getLimitOrdersList(asset);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->getLimitOrdersList: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| asset | String | asset for filtering limit orders | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
performCryptoExchange(cryptoExchangeRequest)
Perform exchange of assets. One of assets has to be a cryptocurrency
Only one of amounts (source or target) must be given
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final CryptoExchangeRequest cryptoExchangeRequest = ; // CryptoExchangeRequest |
try {
api.performCryptoExchange(cryptoExchangeRequest);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->performCryptoExchange: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| cryptoExchangeRequest | CryptoExchangeRequest | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
performExchange(performExchangeRequest)
Perform exchange operation
Perform fiat currency exchange operation between two given accounts in different currencies.
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final PerformExchangeRequest performExchangeRequest = ; // PerformExchangeRequest |
try {
api.performExchange(performExchangeRequest);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->performExchange: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| performExchangeRequest | PerformExchangeRequest | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
putLimitOrder(putLimitOrderRequest)
Put limit order to the system. Order will be executed later
Only one of amounts (source or target) must be given. Only one of values (rate_source_to_target or rate_target_to_source) must be given
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final PutLimitOrderRequest putLimitOrderRequest = ; // PutLimitOrderRequest |
try {
api.putLimitOrder(putLimitOrderRequest);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->putLimitOrder: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| putLimitOrderRequest | PutLimitOrderRequest | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FearGreed voteFearGreed(assetId, voteFearGreedRequest)
Vote if this crypto asset goes up or down today
import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = BindApi().getExchangeApi();
final String assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | id of a crypto asset
final VoteFearGreedRequest voteFearGreedRequest = ; // VoteFearGreedRequest |
try {
final response = api.voteFearGreed(assetId, voteFearGreedRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling ExchangeApi->voteFearGreed: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| assetId | String | id of a crypto asset | |
| voteFearGreedRequest | VoteFearGreedRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]