Type/to search
Built-in Functions
Global
Version
IsVirtual
GetOS
GetPid
GetMeta
Sleep
Unix
UnixNano
_D
GetCommand
GetLastError
SetErrorFilter
_N
_C
_Cross
JSON.parse
JSON.stringify
Encode
MD5
UUID
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Get the ID of the live trading process.

GetPid()

Examples

Print the process ID of the robot process.

javascript
function main() { var id = GetPid() Log(id) // Output: the process ID, e.g. 12345 }
python
def main(): id = GetPid() Log(id) # Output: the process ID, e.g. 12345
rust
fn main() { let id = GetPid(); Log!(id); // Output: the process ID, e.g. 12345 }

Returns

TypeDescription

number

Returns the ID of the live trading process.

See Also