ByteChef LogoByteChef

Binance

Binance is an online exchange where users can trade cryptocurrencies.

Categories: Payment Processing

Type: binance/v1


Actions

Fetch Pair Price

Name: fetchPairPrice

Fetch the price of a crypto pair from Binance.

Properties

NameLabelTypeDescriptionRequired
symbolSymbolSTRINGThe symbol of the crypto pair.true

Example JSON Structure

{
  "label" : "Fetch Pair Price",
  "name" : "fetchPairPrice",
  "parameters" : {
    "symbol" : ""
  },
  "type" : "binance/v1/fetchPairPrice"
}

Output

Type: OBJECT

Properties

NameTypeDescription
symbolSTRINGThe symbol of the crypto pair.
priceSTRINGThe price of the crypto pair.

Output Example

{
  "symbol" : "",
  "price" : ""
}

Find Symbol ID

The Symbol ID is a unique value that can be found in the Binance UI or via the API.

  • Method 1: In the Binance UI
  1. Go to https://www.binance.com/en/futures/multi-symbols.
  2. On the left bar you can find symbols.
  • Method 2: Via API

Use the GET /exchangeInfo endpoint to retrieve a list of all symbols and their IDs.

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.

How is this guide?

Last updated on

On this page