constants

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package constants defines various constants used for Binance Futures API.

Index

Constants

View Source
const (
	// ProductionBaseURL is the base URL for the Binance Futures production environment.
	ProductionBaseURL = "https://fapi.binance.com"

	// TestnetBaseURL is the base URL for the Binance Futures testnet environment.
	TestnetBaseURL = "https://testnet.binancefuture.com"
)

Base URLs for Binance Futures API.

View Source
const (
	// ProductionWSURL is the WebSocket URL for the Binance Futures production environment.
	ProductionWSURL = "wss://fstream.binancefuture.com"

	// TestnetWSURL is the WebSocket URL for the Binance Futures testnet environment.
	TestnetWSURL = "wss://fstream.testnet.binancefuture.com"
)

WebSocket URLs for Binance Futures API.

View Source
const (
	// PingEndpoint is the endpoint for server ping.
	PingEndpoint = "/fapi/v1/ping"

	// ServerTimeEndpoint is the endpoint to get the server time.
	ServerTimeEndpoint = "/fapi/v1/time"

	// ExchangeInfoEndpoint is the endpoint to get exchange information.
	ExchangeInfoEndpoint = "/fapi/v1/exchangeInfo"

	// OrderBookEndpoint is the endpoint to get order book data.
	OrderBookEndpoint = "/fapi/v1/depth"

	// RecentTradesEndpoint is the endpoint to get recent trade information.
	RecentTradesEndpoint = "/fapi/v1/trades"
)

API Endpoints for Binance Futures.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL