A partir do sgcWebSockets 2022.1, o Bitmex REST API é suportado, isso significa that now você pode place orders, cancelar existing orders, get executions, position... e much more.
Colocar Ordens
The Bitmex REST API offer public e private endpoints. The Private endpoints requer que messages signed para increase o security de transactions.
Primeiro você deve login para your Bitmex account e create um novo API, você vai obter o following values:
- ApiKey
- ApiSecret
These fields deve ser configured no Bitmex property do Bitmex API client component. Once configured, você pode iniciar para do private requests para o Bitmex REST API.
// buy market order BITMEX.REST_API.PlaceMarketOrder(bmosBuy, 'XBTUSD', 100); // sell limit order at 45000 BITMEX.REST_API.PlaceLimitOrder(bmosSell, 'XBTUSD', 100, 45000.00); // stop order at 48000 BITMEX.REST_API.PlaceStopOrder(bmosSell, 'XBTUSD', 100, 48000.00);
