GetPid
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
| Type | Description |
number | Returns the ID of the live trading process. |
See Also