Announcement
Home
Support Center
Announcement
API Updates
Binance Liquid Swap Upgrades Pool Prices WebSocket

Binance Liquid Swap Upgrades Pool Prices WebSocket

2023-06-14 13:31

This is a general announcement. Products and services referred to here may not be available in your region.

Fellow Binancians,

Binance Liquid Swap has released a new WebSocket with enhanced API functionalities. Get the new WebSocket here: wss://api.binance.com/sapi/wss?topic=topic1. The old WebSocket endpoint (i.e., wss://nbstream.binance.com/lvt/ws/swap_price) will retire at 2023-07-13 00:00 (UTC).

The upgrade features:

  • Better performance

  • Fetching a single pool

  • Fetching multiple pools

  • Fetching all pools

Existing API users are advised to change their trading algorithm and upgrade to the new WebSocket at their earliest convenience. New API users are encouraged to try out the new feature as well. 

For more information, please refer to the full API documentation on Binance Liquid Swap here as well as the FAQ on How to Use API Trading in Binance Swap Farming. VIP users who wish to get a higher frequency setup may contact the Customer Service, or the Binance VIP team.

How to Get Started

Users may use wss://api.binance.com/sapi/wss?topic=topic1 for the latest information on pool prices on one or more specific pools using different Stream Names:

  • earn_swapprice_<poolid>

  • earn_swapprice_all

Get Started with API Trading on Liquid Swap!

Notes:

  • Please refer to Liquid Swap Terms of Use before using any products on Binance Liquid Swap.

  • Where any discrepancy arises between the translated versions and the original English version, the English version shall prevail.

Guides and Related Materials:

Thanks for your support!

Binance Team

2023-06-14

Trade on-the-go with Binance’s crypto trading app (iOS/Android)

Find us on

Binance reserves the right in its sole discretion to amend or cancel this announcement at any time and for any reasons without prior notice.

Risk Warning: Digital asset prices are subject to high market risk and price volatility. The value of your investment may go down or up, and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance is not liable for any losses you may incur. Past performance is not a reliable predictor of future performance. You should only invest in products you are familiar with and where you understand the risks. You should carefully consider your investment experience, financial situation, investment objectives and risk tolerance and consult an independent financial adviser prior to making any investment. This material should not be construed as financial advice. For more information, see our Terms of Use and Risk Warning.