pproapi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pproapi [2023/02/16 13:20] – [ValidateSymbol] hammed | pproapi [2024/01/10 09:08] (current) – [CancelOrder] hammed | ||
|---|---|---|---|
| Line 68: | Line 68: | ||
| **Notes:** | **Notes:** | ||
| - | * For IMBALANCE / OSTAT / ORDEREVENT / PAPIORDER, messages pass the region parameter | + | * For OSTAT / ORDEREVENT / PAPIORDER, messages pass the region |
| + | * For IMBALANCE / SCRIPTS, messages pass the market | ||
| * For L1, L2, or TOS data, messages must pass the symbol parameter | * For L1, L2, or TOS data, messages must pass the symbol parameter | ||
| * Lv1 and Tos are deprecated but still available, please update your scripts to use L1 and TOS, respectively | * Lv1 and Tos are deprecated but still available, please update your scripts to use L1 and TOS, respectively | ||
| Line 146: | Line 147: | ||
| < | < | ||
| + | |||
| + | ===Scripts (SCRIPTS)=== | ||
| + | |||
| + | This command registers the API to register scripts. This will require you to set an output, and after doing so will create a file where all the scripts will be written. | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | |||
| ====SetOutput==== | ====SetOutput==== | ||
| Use this command to set the output information for the symbol and define where the data should be written, either **bykey** or **bytype**. | Use this command to set the output information for the symbol and define where the data should be written, either **bykey** or **bytype**. | ||
| + | |||
| + | Please note that the data will be written to a log file, which will be generated in PPro8 folder. | ||
| **New:** the SetOutput command is now supported for Manager accounts, for the OSTAT and ORDEREVENT feed types only. For OSTAT / ORDEREVENT, messages pass the region parameter. | **New:** the SetOutput command is now supported for Manager accounts, for the OSTAT and ORDEREVENT feed types only. For OSTAT / ORDEREVENT, messages pass the region parameter. | ||
| Line 154: | Line 166: | ||
| Syntax: | Syntax: | ||
| - | < | + | < |
| Example: | Example: | ||
| Line 162: | Line 174: | ||
| ===Notes=== | ===Notes=== | ||
| - | * For IMBALANCE / OSTAT / ORDEREVENT / PAPIORDER, messages pass the region parameter. | + | * For OSTAT / ORDEREVENT / PAPIORDER |
| + | * For IMBALANCE, messages pass the market | ||
| * For L1, L2, or TOS data, must pass the symbol parameter. | * For L1, L2, or TOS data, must pass the symbol parameter. | ||
| * ' | * ' | ||
| Line 298: | Line 311: | ||
| ====Imbalance (IMBALANCE)==== | ====Imbalance (IMBALANCE)==== | ||
| - | Example: < | + | Example: < |
| This command registers the API to receive all Imbalance data. | This command registers the API to receive all Imbalance data. | ||
| - | Messages for IMBALANCE must pass the region | + | Messages for IMBALANCE must pass the market |
| **Note:** NASDAQ and NYSE information is dynamic, while TSX/TSX-V information is static. AMEX information is not available at this time. | **Note:** NASDAQ and NYSE information is dynamic, while TSX/TSX-V information is static. AMEX information is not available at this time. | ||
| Line 454: | Line 467: | ||
| < | < | ||
| - | < | + | < |
| ===Notes=== | ===Notes=== | ||
| - | * For IMBALANCE messages, define | + | * For IMBALANCE messages, define |
| * Regional data centers: 1 = NewJersey, 2 = London, 3 = Hong Kong, 4 = Sydney | * Regional data centers: 1 = NewJersey, 2 = London, 3 = Hong Kong, 4 = Sydney | ||
| * For L1, L2, or TOS data, define symbol | * For L1, L2, or TOS data, define symbol | ||
| Line 733: | Line 746: | ||
| * < | * < | ||
| * < | * < | ||
| + | * < | ||
| ===Notes=== | ===Notes=== | ||
| Line 892: | Line 906: | ||
| This command exports the information to a CSV file named < | This command exports the information to a CSV file named < | ||
| + | |||
| + | =====Data Output Format===== | ||
| + | |||
| + | Data through the API can be exported into two formats: JSON, and XML. | ||
| + | |||
| + | ====JSON==== | ||
| + | |||
| + | To output data as JSON, please take the following steps: | ||
| + | |||
| + | Copy and call the following syntax into your script: | ||
| + | |||
| + | < | ||
| + | |||
| + | ====XML==== | ||
| + | |||
| + | To output data as XML, please take the following steps: | ||
| + | |||
| + | Copy and call the following syntax into your script: | ||
| + | |||
| + | < | ||
| + | |||
| + | * Note: You cannot call both of these functions at the same time. | ||
| + | |||
| =====Additional Notes===== | =====Additional Notes===== | ||
| * For more information about markets currently available for trading with the PProAPI, see the __{{pproapi_markets_list.xlsx|PProAPI Markets List}}__. | * For more information about markets currently available for trading with the PProAPI, see the __{{pproapi_markets_list.xlsx|PProAPI Markets List}}__. | ||
pproapi.1676571623.txt.gz · Last modified: 2023/02/16 13:20 by hammed
