MEXC Exchange API

Stream real-time market data and trading information from the MEXC cryptocurrency exchange.

MEXC Integration

Access MEXC's WebSocket API for real-time ticker, depth, and trade data across spot and futures markets.

MEXC Market Data Streams

The sgcWebSockets MEXC component connects to the MEXC WebSocket API, providing real-time market data for hundreds of trading pairs. Subscribe to ticker updates, order book depth, kline data, and trade events.

  • Real-time ticker and price updates
  • Order book depth streams
  • Kline/candlestick data for all intervals
  • Trade execution streams

Delphi MEXC Example

Subscribe to MEXC ticker data.

uses
  sgcHTTP_API_MEXC;

var
  MEXC: TsgcHTTPAPI_MEXC;

procedure TForm1.FormCreate(Sender: TObject);
begin
  MEXC := TsgcHTTPAPI_MEXC.Create(nil);
  MEXC.OnMEXCTicker := OnTicker;
  MEXC.Connect;
end;

procedure TForm1.Subscribe;
begin
  MEXC.SubscribeTicker('BTCUSDT');
end;

procedure TForm1.OnTicker(Sender: TObject;
  aSymbol, aPrice, aVolume: string);
begin
  Label1.Caption := aSymbol + ': $' + aPrice;
end;

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Ready to Stream MEXC Data?

Download the free trial and connect to MEXC in minutes.