| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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)
}
}(If the page is not being rendered for you, you can refer to the mirror at https://docs.ccxt.com/)
| Back | FazBrowse Home | New Git URL |