Symbol Reference
Symbol Reference
/
sgcHTTP_API_Bitmex Namespace
sgcAI Namespace
sgcAI_AudioPlayer Namespace
sgcAI_AudioPlayer_MCI Namespace
sgcAI_AudioRecorder Namespace
sgcAI_AudioRecorder_MCI Namespace
sgcAI_DB_Vector Namespace
sgcAI_DB_Vector_File Namespace
sgcAI_DB_Vector_Pinecone Namespace
sgcAI_Helpers Namespace
sgcAI_OpenAI Namespace
sgcAI_OpenAI_Audio Namespace
sgcAI_OpenAI_Audio_ChatBot Namespace
sgcAI_OpenAI_Audio_Translator Namespace
sgcAI_OpenAI_Embeddings Namespace
sgcAI_SpeechToText Namespace
sgcAI_TextToSpeech Namespace
sgcAI_TextToSpeech_Amazon Namespace
sgcAI_TextToSpeech_Google Namespace
sgcAI_TextToSpeech_System Namespace
sgcAMQP Namespace
sgcAMQP_Classes Namespace
sgcAMQP_Client Namespace
sgcAMQP_Const Namespace
sgcAMQP_Helpers Namespace
sgcBase_Classes Namespace
sgcBase_Const Namespace
sgcBase_Helpers Namespace
sgcBase_Sync Namespace
sgcHTTP Namespace
sgcHTTP2_Classes Namespace
sgcHTTP2_Classes_Indy Namespace
sgcHTTP2_Client Namespace
sgcHTTP2_Const Namespace
sgcHTTP2_Frame Namespace
sgcHTTP2_HPACK Namespace
sgcHTTP2_Helpers Namespace
sgcHTTP2_Types Namespace
sgcHTTP_API Namespace
sgcHTTP_API_Binance Namespace
sgcHTTP_API_Bitmex Namespace
sgcHTTP_API_Bybit Namespace
sgcHTTP_API_Coinbase Namespace
sgcHTTP_API_Cryptohopper Namespace
sgcHTTP_API_Cryptorobotics Namespace
sgcHTTP_API_FTX Namespace
sgcHTTP_API_Kraken Namespace
sgcHTTP_API_Kucoin Namespace
sgcHTTP_API_OpenAI Namespace
sgcHTTP_API_ThreeCommas Namespace
sgcHTTP_API_WebPush Namespace
sgcHTTP_Amazon_AWS Namespace
sgcHTTP_Amazon_AWS_Signature Namespace
sgcHTTP_Amazon_SQS Namespace
sgcHTTP_Classes Namespace
sgcHTTP_Client Namespace
sgcHTTP_Const Namespace
sgcHTTP_Google_Calendar Namespace
sgcHTTP_Google_Cloud Namespace
sgcHTTP_Google_PubSub Namespace
sgcHTTP_Helpers Namespace
sgcHTTP_JWT_Classes Namespace
sgcHTTP_JWT_Client Namespace
sgcHTTP_JWT_ES Namespace
sgcHTTP_JWT_HMAC Namespace
sgcHTTP_JWT_Helpers Namespace
sgcHTTP_JWT_RSA Namespace
sgcHTTP_JWT_Server Namespace
sgcHTTP_JWT_Types Namespace
sgcHTTP_MultipartFormData Namespace
sgcHTTP_OAuth2_Client Namespace
sgcHTTP_OAuth2_Client_Google Namespace
sgcHTTP_OAuth2_Client_Microsoft Namespace
sgcHTTP_OAuth2_Server Namespace
sgcHTTP_OAuth_Client Namespace
sgcHTTP_OAuth_Server Namespace
sgcHTTP_OpenAPI_Client Namespace
sgcHTTP_OpenAPI_Client_Amazon Namespace
sgcHTTP_OpenAPI_Client_Google Namespace
sgcHTTP_OpenAPI_Client_Microsoft Namespace
sgcIndy_IOHandler_IO Namespace
sgcIndy_IOHandler_IO_Classes Namespace
sgcIndy_IOHandler_IO_Classes_OpenSSL Namespace
sgcIndy_IOHandler_IO_EPOLL Namespace
sgcIndy_IOHandler_IO_Engine Namespace
sgcIndy_IOHandler_IO_IOCP Namespace
sgcIndy_IOHandler_IO_OpenSSL Namespace
sgcIndy_IOHandler_IO_OpenSSL_EPOLL Namespace
sgcIndy_IOHandler_IO_OpenSSL_IOCP Namespace
sgcIndy_IOHandler_IO_Server Namespace
sgcIndy_IOHandler_IO_Server_EPOLL Namespace
sgcIndy_IOHandler_IO_Server_IOCP Namespace
sgcIndy_IOHandler_IO_Server_OpenSSL Namespace
sgcIndy_IOHandler_IO_Server_OpenSSL_EPOLL Namespace
sgcIndy_IOHandler_IO_Server_OpenSSL_IOCP Namespace
sgcIndy_IOHandler_IO_WorkOpThread Namespace
sgcIndy_Scheduler_IO Namespace
sgcIoT Namespace
sgcIoT_Amazon_MQTT_Client Namespace
sgcIoT_Azure_MQTT_Client Namespace
sgcIoT_Classes Namespace
sgcIoT_Client Namespace
sgcIoT_MQTT_Client Namespace
sgcJSON Namespace
sgcJSON_System Namespace
sgcJSON_XSuperObject Namespace
sgcLib_RCON_Client Namespace
sgcLib_Telegram Namespace
sgcLib_Telegram_Client Namespace
sgcLib_WhatsApp Namespace
sgcLib_WhatsApp_Client Namespace
sgcLib_WhatsApp_Server Namespace
sgcLibs Namespace
sgcP2P Namespace
sgcP2P_ICE_Classes Namespace
sgcP2P_ICE_Client Namespace
sgcP2P_ICE_Types Namespace
sgcP2P_RTCPeerConnection Namespace
sgcP2P_STUN_Classes Namespace
sgcP2P_STUN_Client Namespace
sgcP2P_STUN_Helpers Namespace
sgcP2P_STUN_Server Namespace
sgcP2P_STUN_Types Namespace
sgcP2P_TURN_Classes Namespace
sgcP2P_TURN_Client Namespace
sgcP2P_TURN_Helpers Namespace
sgcP2P_TURN_Server Namespace
sgcP2P_TURN_Types Namespace
sgcSSL_SChannel Namespace
sgcSSL_SChannel_Indy Namespace
sgcSSL_WinSSPI Namespace
sgcSTOMP Namespace
sgcSocket_Classes Namespace
sgcSocket_Classes_Indy Namespace
sgcSocket_Const Namespace
sgcTCP_Classes Namespace
sgcTCP_Classes_Indy Namespace
sgcTCP_Client Namespace
sgcUDP_Classes Namespace
sgcUDP_Classes_Indy Namespace
sgcUDP_Client Namespace
sgcUDP_Server Namespace
sgcWebSocket Namespace
sgcWebSocket_API_Binance Namespace
sgcWebSocket_API_Bitfinex Namespace
sgcWebSocket_API_Bitmex Namespace
sgcWebSocket_API_Bitstamp Namespace
sgcWebSocket_API_Blockchain Namespace
sgcWebSocket_API_Bybit Namespace
sgcWebSocket_API_Cex Namespace
sgcWebSocket_API_Coinbase Namespace
sgcWebSocket_API_Discord Namespace
sgcWebSocket_API_FTX Namespace
sgcWebSocket_API_FXCM Namespace
sgcWebSocket_API_Huobi Namespace
sgcWebSocket_API_Kraken Namespace
sgcWebSocket_API_OKX Namespace
sgcWebSocket_API_Pusher Namespace
sgcWebSocket_API_SignalR Namespace
sgcWebSocket_API_SignalRCore Namespace
sgcWebSocket_API_SocketIO Namespace
sgcWebSocket_API_ThreeCommas Namespace
sgcWebSocket_API_XTB Namespace
sgcWebSocket_APIs Namespace
sgcWebSocket_Classes Namespace
sgcWebSocket_Classes_HTTP2 Namespace
sgcWebSocket_Classes_HTTPAPI Namespace
sgcWebSocket_Classes_Indy Namespace
sgcWebSocket_Classes_Queues Namespace
sgcWebSocket_Classes_Sockets Namespace
sgcWebSocket_Classes_SyncObjs Namespace
sgcWebSocket_Classes_WinHTTP Namespace
sgcWebSocket_Client Namespace
sgcWebSocket_Client_WinHTTP Namespace
sgcWebSocket_Const Namespace
sgcWebSocket_CustomClient Namespace
sgcWebSocket_CustomServer Namespace
sgcWebSocket_Extension_Base Namespace
sgcWebSocket_Extension_DeflateFrame Namespace
sgcWebSocket_Extension_PerMessage_Deflate Namespace
sgcWebSocket_Extensions Namespace
sgcWebSocket_HTTPAPI Namespace
sgcWebSocket_HTTPAPI_Server Namespace
sgcWebSocket_HTTPResponse Namespace
sgcWebSocket_Helpers Namespace
sgcWebSocket_LoadBalancer_Client Namespace
sgcWebSocket_LoadBalancer_Message Namespace
sgcWebSocket_LoadBalancer_Server Namespace
sgcWebSocket_Protocol_AMQP_Client Namespace
sgcWebSocket_Protocol_AMQP_Message Namespace
sgcWebSocket_Protocol_AppRTC_Server Namespace
sgcWebSocket_Protocol_Base_Client Namespace
sgcWebSocket_Protocol_Base_Message Namespace
sgcWebSocket_Protocol_Base_Server Namespace
sgcWebSocket_Protocol_Broker_Client Namespace
sgcWebSocket_Protocol_Broker_Message Namespace
sgcWebSocket_Protocol_Broker_Server Namespace
sgcWebSocket_Protocol_Dataset_Client Namespace
sgcWebSocket_Protocol_Dataset_Message Namespace
sgcWebSocket_Protocol_Dataset_Server Namespace
sgcWebSocket_Protocol_Files_Client Namespace
sgcWebSocket_Protocol_Files_Message Namespace
sgcWebSocket_Protocol_Files_Server Namespace
sgcWebSocket_Protocol_MQTT_Client Namespace
sgcWebSocket_Protocol_MQTT_Message Namespace
sgcWebSocket_Protocol_Presence_Client Namespace
sgcWebSocket_Protocol_Presence_Message Namespace
sgcWebSocket_Protocol_Presence_Server Namespace
sgcWebSocket_Protocol_RTCPeerConnection_Client Namespace
sgcWebSocket_Protocol_RTCPeerConnection_Message Namespace
sgcWebSocket_Protocol_RTCPeerConnection_Server Namespace
sgcWebSocket_Protocol_STOMP_ActiveMQ_Client Namespace
sgcWebSocket_Protocol_STOMP_Broker_Client Namespace
sgcWebSocket_Protocol_STOMP_Client Namespace
sgcWebSocket_Protocol_STOMP_Message Namespace
sgcWebSocket_Protocol_STOMP_RabbitMQ_Client Namespace
sgcWebSocket_Protocol_WAMP2_Client Namespace
sgcWebSocket_Protocol_WAMP2_Message Namespace
sgcWebSocket_Protocol_WAMP_Client Namespace
sgcWebSocket_Protocol_WAMP_Message Namespace
sgcWebSocket_Protocol_WAMP_Server Namespace
sgcWebSocket_Protocol_WebRTC_Message Namespace
sgcWebSocket_Protocol_WebRTC_Server Namespace
sgcWebSocket_Protocol_sgc_Client Namespace
sgcWebSocket_Protocol_sgc_Message Namespace
sgcWebSocket_Protocol_sgc_Server Namespace
sgcWebSocket_Protocols Namespace
sgcWebSocket_Resources Namespace
sgcWebSocket_SRWLock Namespace
sgcWebSocket_Server Namespace
sgcWebSocket_Server_API_Base Namespace
sgcWebSocket_Server_API_RTCMultiConnection Namespace
sgcWebSocket_Server_API_SocketIO Namespace
sgcWebSocket_Server_API_WebPush Namespace
sgcWebSocket_Server_APIs Namespace
sgcWebSocket_Server_Base Namespace
sgcWebSocket_Server_Base_WebBrokerBridge Namespace
sgcWebSocket_Server_HTTPAPI Namespace
sgcWebSocket_Server_HTTPAPI_WebBrokerBridge Namespace
sgcWebSocket_Server_Proxy Namespace
sgcWebSocket_Server_WebBrokerBridge Namespace
sgcWebSocket_Server_WebBrokerBridge_HTTP2 Namespace
sgcWebSocket_Types Namespace
sgcWebSocket_WinAPI Namespace
Files
/
Classes
Classes
Structs, Records, Enums
/
TsgcHTTP_API_Bitmex_Rest
TsgcHTTPBitmexAmendOrder
TsgcHTTPBitmexLog_Options
TsgcHTTPBitmexOrder
TsgcHTTPBitmex_Options
TsgcHTTP_API_Bitmex
TsgcHTTP_API_Bitmex_Rest
/
TsgcHTTP_API_Bitmex_Rest Methods (sgcHTTP_API_Bitmex)
TsgcHTTP_API_Bitmex_Rest Methods (sgcHTTP_API_Bitmex)
/
TsgcHTTP_API_Bitmex_Rest.ClosePosition
TsgcHTTP_API_Bitmex_Rest.AmendOrder
TsgcHTTP_API_Bitmex_Rest.CancelAllOrders
TsgcHTTP_API_Bitmex_Rest.CancelAllOrdersAfter
TsgcHTTP_API_Bitmex_Rest.CancelOrder
TsgcHTTP_API_Bitmex_Rest.ClosePosition
TsgcHTTP_API_Bitmex_Rest.GetExecutions
TsgcHTTP_API_Bitmex_Rest.GetExecutionsTradeHistory
TsgcHTTP_API_Bitmex_Rest.GetInstruments
TsgcHTTP_API_Bitmex_Rest.GetInstrumentsActive
TsgcHTTP_API_Bitmex_Rest.GetOrderBook
TsgcHTTP_API_Bitmex_Rest.GetOrders
TsgcHTTP_API_Bitmex_Rest.GetPosition
TsgcHTTP_API_Bitmex_Rest.GetQuotes
TsgcHTTP_API_Bitmex_Rest.GetTrades
TsgcHTTP_API_Bitmex_Rest.PlaceLimitOrder
TsgcHTTP_API_Bitmex_Rest.PlaceMarketOrder
TsgcHTTP_API_Bitmex_Rest.PlaceOrder
TsgcHTTP_API_Bitmex_Rest.PlaceStopLimitOrder
TsgcHTTP_API_Bitmex_Rest.PlaceStopOrder
TsgcHTTP_API_Bitmex_Rest.SetPositionIsolate
TsgcHTTP_API_Bitmex_Rest.SetPositionLeverage
TsgcHTTP_API_Bitmex_Rest.SetPositionRiskLimit
TsgcHTTP_API_Bitmex_Rest.SetPositionTransferMargin
Close
sgcWebSockets Classes
Home
Contents
Index
TsgcHTTP_API_Bitmex_Rest.ClosePosition Method
Namespace:
sgcHTTP_API_Bitmex
Pascal
C++
C#
Visual Basic
public
function
ClosePosition
(
const
aSymbol
:
string
;
aPrice
: Extended = 0 ):
string
;
public
:
__fastcall
AnsiString
ClosePosition
(
const
AnsiString
aSymbol
, Extended
aPrice
= 0 );
public
String
ClosePosition
( String
aSymbol
, Extended
aPrice
= 0 );
Public
Function
ClosePosition
(
aSymbol
As
String
,
aPrice
As
Extended = 0 )
As
String
Description
This is ClosePosition, a member of class TsgcHTTP_API_Bitmex_Rest.
Links
TsgcHTTP_API_Bitmex_Rest Class
sgcHTTP_API_Bitmex Namespace
TsgcHTTP_API_Bitmex_Rest Methods