Delphi 3Commas Client

From sgcWebSockets 4.5.2, 3Commas API is supported. 3Commas is a cryptocurrency trading platform designed to help you build automated trading bots.

APIs supported
  • WebSockets API: connect to a public websocket server and provides real-time market data updates.
  • REST API: The REST API has endpoints for account and order management as well as public market data.

You can read more about 3Commas on his website:

WebSockets API 

The websocket feed provides real-time market data updates for Trades and Deals

You can subscribe to the following Public channels:

  • SubscribeSmartTrades
  • SubscribeDeals

These channels requires Authenticate against 3Commas servers. So first request your API keys in your 3Commas Account and then set the values in the property ThreeComas of the component:

  • ApiKey
  • ApiSecret

If the subscription is successful, the event OnThreeCommasConfirmSubscription will be called. If not, the event OnThreeCommasRejectSubscription it's called, you can get the reason of the rejection using the aRawMessage parameter.


The following Endpoints methods are supported by sgcWebSockets library.

Test Connectivity 

  • GetPing
  • GetServerTime


  • GetAccounts
  • GetMarketList
  • GetMarketPairs
  • GetCurrencyRatesWithLeverageData
  • GetCurrencyRates
  • GetBalances
  • GetAccountTableData
  • GetAccountLeverage
  • GetAccountInfo

Smart Trades

  • GetSmartTradeHistory
  • PlaceMarketOrder
  • PlaceLimitOrder
  • GetSmartTrade
  • CancelSmartTrade
  • CloseByMarketSmartTrade

Compiled Demo for Windows 

File Name: sgc3Commas
File Size: 2.9 mb
Download File
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

DevExtreme Datagrid WebSocket Protocol
Telegram Libraries Updated

Related Posts