MngAddGatewaySymbolMapping¶
Adds a separately stored mapping to an existing gateway. Requires SESSION_ADMIN.
{"command":"MngAddGatewaySymbolMapping","gateway_id":3,"provider_symbol":"EUR/USD","source_name":"EURUSD","quote_enabled":true,"execution_enabled":true}
gateway_id, provider_symbol, and source_name are required. quote_enabled defaults to true; execution_enabled defaults to false. Names are non-empty, exact, and case-sensitive.
(gateway_id, provider_symbol) must be unique. Multiple quote aliases may use the same source_name, but only one record per gateway and source_name may have execution_enabled=true.
Success returns the created record in mapping. An enabled gateway is restarted asynchronously to install the new immutable lookup tables. Poll MngGetGatewayRuntime until it returns to READY.