Skip to content

Repository files navigation

bind_api (EXPERIMENTAL)

Description for BIND.

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 2.0
  • Build package: org.openapitools.codegen.languages.DartDioClientCodegen For more information, please visit https://www.bind.com/

Requirements

  • Dart 2.12.0 or later OR Flutter 1.26.0 or later
  • Dio 4.0.0+

Installation & Usage

pub.dev

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
bind_api: 0.2.1

Github

If this Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
bind_api:
git:
url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git#ref: main

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
bind_api:
path: /path/to/bind_api

Getting Started

Please follow the installation procedure and then run the following:

import'package:bind_api/bind_api.dart';
final api =BindApi().getAuthApi();
try {
final response =await api.whoAmI();
print(response);
} catchonDioError (e) {
print("Exception when calling AuthApi->whoAmI: $e\n");
}

Documentation for API Endpoints

All URIs are relative to https://api.thebind.uk/v1

ClassMethodHTTP requestDescription
AuthApiwhoAmIGET /auth/whoami/Who am I
BeneficiariesApicreateBeneficiaryPOST /beneficiaries/Add new beneficiary
BeneficiariesApideleteBeneficiaryDELETE /beneficiaries/{beneficiary_id}/Delete beneficiary
BeneficiariesApiestimateFiatTransferPOST /fiat/transfer/review/Preview of fiat transfer
BeneficiariesApigetBeneficiariesGET /beneficiaries/List of beneficiaries of current user
BeneficiariesApigetBeneficiaryGET /beneficiaries/{beneficiary_id}/Get beneficiary by id
BeneficiariesApiperformFiatTransferPOST /fiat/transfer/Send money to outer bank account
BeneficiariesApiupdateBeneficiaryPATCH /beneficiaries/{beneficiary_id}/Update beneficiary data
ContactsApiaddContactByUserPOST /contacts/add user to contact
ContactsApicheckContactGET /contacts/{user_id}/checkCheck if user_id is in contacts
ContactsApicreateInnerFiatRequestPOST /fiat/request/Request fiat inside BIND
ContactsApicreateInnerFiatTransferPOST /fiat/send/Send fiat inside BIND
ContactsApigenerateQRCodeTokenGET /users/send/qr_code/Generate JWT token to share as QR code
ContactsApigetContactsGET /contacts/List of contacts of current user
ContactsApigetInnerFiatTransferFeePOST /fiat/send/fee/
ContactsApiqRCodeGenerateViewGET /users/generate/qr_code/Generate QRCode with JWT token and return QRCode image
ContactsApireadJWTTokenPOST /users/send/qr_code/Check JWT validity and read user from it
ContactsApisyncContactsPOST /contacts/sync/Sync mobile phone contacts of current user with backend data
ContactsApiupdateContactPATCH /contacts/{contact_id}/Update contact data (add/remove contact from favorite)
CryptoApigetCryptoChartCandlesGET /charts/crypto/candle/List of candles for crypto price chart
CryptoApigetCryptoChartLineGET /charts/crypto/line/List line ticks for crypto price chart
CryptoApigetCryptoOverviewGET /crypto/overview/Get crypto overview information
CryptoApigetGlobalCryptoStatsGET /crypto/global/stats/Get global crypto market information
CryptoApigetInnerCryptoTransferFeePOST /crypto/send/fee/
CryptoApigetTokenDetailGET /crypto/detail/{assetID}/Get detail for certain token
CryptoApigetTokenStatsGET /crypto/stats/{assetID}/Get stats for certain token
CryptoApilistCryptoCurrenciesGET /currencies/crypto/List of Crypto Currencies
CryptoApiperformInnerCryptoTransferPOST /crypto/send/Send crypto inside BIND
CryptoWalletApiaddCryptoFavoritePOST /crypto/favorites/Add crypto asset to favorite
CryptoWalletApicreateWithdrawalAddressPOST /crypto/withdrawal/whitelisted_addresses/Create new whitelisted withdrawal address
CryptoWalletApideleteCryptoFavoriteDELETE /crypto/favorites/{asset_id}/Delete asset from favorites
CryptoWalletApideleteWithdrawalAddressDELETE /crypto/withdrawal/whitelisted_addresses/{address_id}/Delete withdrawal asset
CryptoWalletApiestimateCryptoWithdrawalFeePOST /crypto/withdrawal/estimate_fee/Estimate fee for withdrawal
CryptoWalletApigetAssetsBreakdownGET /crypto/breakdown/Get crypto asset allocation/breakdown of current User
CryptoWalletApigetChainImplementationsGET /crypto/assets/{asset_id}/chain_implementations/Get chains for a crypto asset
CryptoWalletApigetCryptoFavoritesGET /crypto/favorites/Get user favorite crypto assets
CryptoWalletApigetCryptoWalletGET /crypto/wallet/Get crypto wallet of current User - total balance and assets balances
CryptoWalletApigetCryptoWalletLightGET /crypto/wallet/light/Get crypto assets of current user with balances and prices
CryptoWalletApigetDepositAddressesGET /crypto/assets/{asset_id}/deposit_addresses/Get deposit addresses for a crypto asset
CryptoWalletApigetProfitLossGET /crypto/wallet/profitloss/Get profit loss
CryptoWalletApigetProfitLossSummaryGET /crypto/wallet/profitloss/summary/Get profit loss summary
CryptoWalletApigetSingleCryptoBalanceGET /crypto/assets/{asset_id}/balance/Get detailed balance of a crypto asset
CryptoWalletApigetWithdrawalAddressesGET /crypto/withdrawal/whitelisted_addresses/Get whitelisted addresses for crypto withdrawal
CryptoWalletApiperformWithdrawalOfCryptoPOST /crypto/withdrawal/perform/Register a withdrawal transaction
CurrencyApigetCryptoAssetGET /currencies/crypto/{crypto_currency_id}Crypto currency information with flag favorite or not for user
CurrencyApilistCryptoCurrenciesGET /currencies/crypto/List of Crypto Currencies
CurrencyApilistCurrenciesGET /currencies/List of Currencies available at Bind
ExchangeApicancelLimitOrderPOST /crypto/exchange/limit_orders/{order_id}/cancelCancel given limit order
ExchangeApiestimateCryptoExchangePOST /crypto/exchange/estimate/Estimate exchange of assets. One of assets has to be a cryptocurrency
ExchangeApigetCryptoExchangeRateGET /crypto/exchange/rate/{from}/{to}/Exchange rate between two given assets (at least one of them is crypto)
ExchangeApigetExchangeRateGET /fiat/exchange/rate/{from}/{to}/Exchange rate between two given currencies
ExchangeApigetFearGreedGET /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)
ExchangeApigetLimitOrdersListGET /crypto/exchange/limit_ordersGet list of limit orders for current user
ExchangeApiperformCryptoExchangePOST /crypto/exchange/Perform exchange of assets. One of assets has to be a cryptocurrency
ExchangeApiperformExchangePOST /fiat/exchange/Perform exchange operation
ExchangeApiputLimitOrderPOST /crypto/exchange/limit_ordersPut limit order to the system. Order will be executed later
ExchangeApivoteFearGreedPATCH /crypto/assets/{asset_id}/fear_greed/Vote if this crypto asset goes up or down today
FiatWalletApiblockBankCardPOST /fiat/bankcards/{card_id}/block/Block bank card and write reason
FiatWalletApichangeDefaultWalletPOST /fiat/bankcards/{card_id}/change_wallet/Change wallet attached to bank card
FiatWalletApicreateFiatWalletPOST /fiat/wallets/Create an wallet in given currency
FiatWalletApigetBankCardGET /fiat/bankcards/{card_id}/Get one exact Bank Card
FiatWalletApigetBankCardAnalyticsGET /fiat/bankcards/{card_id}/analytics/Get analytics for Bank Card
FiatWalletApigetBankCardsListGET /fiat/bankcards/Get a list of Bank Cards issued for current User
FiatWalletApigetFiatAccountGET /fiat/account/All fiat wallets of current user with total balance data
FiatWalletApigetFiatCurrenciesGET /fiat/currencies/List of currencies that are available for fiat account opening
FiatWalletApigetFiatCurrenciesWithRatesGET /fiat/currencies/rate/List of currencies that are available for fiat account opening with rates for given currency
FiatWalletApigetFiatWalletDetailsGET /fiat/wallets/{wallet_id}/Wallet's details
FiatWalletApigetFiatWalletsGET /fiat/wallets/All fiat wallets of current user
FiatWalletApigetFiatWalletsWithUserPaymentCurrencyGET /fiat/wallets/detailed/All fiat wallets of current user with user payment currency info
FiatWalletApilockBankCardPOST /fiat/bankcards/{card_id}/lock/Lock or unlock a bank card
FiatWalletApireissueBankCardPOST /fiat/bankcards/{card_id}/reissue/Reissue bank card and return new bank card
FiatWalletApishareDefaultFiatWalletGET /fiat/wallets/share/Get share information for user default wallet
FiatWalletApishareFiatWalletGET /fiat/wallets/{wallet_id}/share/Share specified wallet details
FiatWalletApiupdateBankCardSettingsPATCH /fiat/bankcards/{card_id}/Update settings of a Bank Card
GeoApilistCountriesGET /countries/Countries list
StagingApiadjustFiatWalletBalancePOST /staging/fiat/wallet/adjust/Change balance of a fiat wallet
StagingApifillCryptoWalletPOST /staging/crypto/wallet/fill/Put some testnet assets in a crypto wallet of a current user
StagingApifireblocksPoolBalancesGET /staging/fireblocks_pool/balances/Get pool balances
StakingApigetAdditionalStakingGET /crypto/staking/additional_infoGet info of additional staking
StakingApigetStakingGET /crypto/stakingGet info of staking
StakingApigetStakingBalanceGET /crypto/staking/balanceGet staking balance
StakingApigetStakingPeriodsGET /crypto/staking/periodsGet staking periods
StakingApigetStakingReleasesGET /crypto/staking/releasesGet staking releases
StakingApigetStakingTimerGET /crypto/staking/timerGet datetime of end timer
StakingApistakingEstimateOperationPOST /crypto/staking/estimateEstimate staking operation
StakingApistakingPerformPOST /crypto/staking/performPerform staking
TransactionsApiexportTransactionsPOST /transactions/export/Export user transaction to csv
TransactionsApigetExportHistoryGET /transactions/export/history/Get export history
TransactionsApigetTransactionDetailsGET /transactions/{transactionId}Get list of user transactions
TransactionsApigetTransactionsAssetsListPOST /transactions/assets/Get list of assets of user transactions
TransactionsApigetTransactionsFilteredPOST /transactions/Get list of user transactions
UserApicheckKYCDocumentStatusPOST /user/kyc/document_status/Check KYC document status
UserApicheckKYCFileStatusPOST /user/kyc/check_file/Check KYC file status
UserApicheckKYCRequestApprovalGET /users/kyc/requests/approval/Get status of KYC Request approval
UserApicheckKYCStatusPOST /user/kyc/check/Send KYC to check
UserApicheckPasscodePOST /users/check/passcode/Check validity of user passcode
UserApicreateKYCFilePOST /user/kyc/file/CreateKYCFile
UserApicreateKYCFile_0GET /user/kyc/create_file/Create KYC file
UserApicreateKYCRequestPOST /user/kyc/requests/Create KYC Request
UserApigetKYCDocumentUIDGET /user/kyc/document_uid/Get KYC Document UID
UserApigetKYCFileGET /user/kyc/file/GetKYCFile
UserApigetUserPaymentCurrencyGET /users/payment_currency/Get user payment currency
UserApimoveKYCRequestPOST /users/kyc/requests/approval/Move KYCRequest to approval
UserApiqRCodeGenerateCustomStringPOST /users/generate/custom_qr_code/Generate QR code with custom string
UserApiupdateUserPATCH /users/{userID}/Update user
UserApiupdateUserPasscodePATCH /users/change_passcode/{userID}/Update user passcode
WalletApigetMainWalletGET /wallet/Total balance and info about Users wallets in crypto, fiat and nft

Documentation For Models

Documentation For Authorization

bearerAuth

  • Type: HTTP basic authentication

Author

support@bind.com

About

BIND API Client for Dart

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages