Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
exchange.IO
exchange.IO("api", ...)
exchange.IO("currency", ...)
exchange.IO("base", ...)
exchange.IO(mode, value)
exchange.IO("rate", ...)
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Calls the extended features of an exchange object; the first argument is the command name. Start with exchange.IO for the full list of commands and the commands specific to each exchange, then see the page of each command. Commands specific to exchange objects such as Web3, Uniswap and Jupiter are on their exchange pages, for example Web3, Uniswap and Jupiter.

In this sectionRead the whole section

NameDescription
exchange.IOCalls other interfaces related to the exchange object.
exchange.IO("api", ...)Calls a raw REST endpoint of the exchange that has no wrapper function; the platform signs the request.
exchange.IO("currency", ...)Switches the current trading pair of the exchange object at runtime.
exchange.IO("base", ...)Queries or switches the base address of the exchange API.
exchange.IO(mode, value)Switches the trading mode of an exchange, including demo/live trading, cross/isolated margin, hedge/one-way position mode, unified account, margin trading mode…
exchange.IO("rate", ...)Limits how often each API function is called: rate for smoothed limiting, quota for quota limiting.