FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

createExchangeDynamically · ccxt/ccxt Wiki · GitHub

createExchangeDynamically · ccxt/ccxt Wiki · GitHub
Skip to content

Navigation Menu

createExchangeDynamically

github-actions[bot] edited this page Jun 11, 2026 · 1 revision
package main

import (
	"ccxt/go/ccxt"
	"fmt"
)

func AbstractExchangeCreation() {
	// instantiate the exchange
	exchanges := []string{"binance", "bybit", "okx"}
	symbol := "BTC/USDT"
	for _, exchangeName := range exchanges {
		exchange := ccxt.CreateExchange(exchangeName, nil)

		ticker, _ := exchange.FetchTicker(symbol)
		fmt.Println("Ticker for", exchangeName, ":", ticker.Last)
	}
}

Wiki pages Pages 1,103

Clone this wiki locally

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL