- GetSimResultsResponse
Collective2 WhiteLabel API (v4)
📖 For full documentation, see the Collective2 API Documentation.
{ "Results": [ { "PersonId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "Account": "string", "StrategyId": 0, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "StartEquity": 0, "EndEquity": 0, "TotalReturn": 0.1, "TotalDelta": 0.1, "ScalingFactor": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
{ "Results": [ { "Id": 0, "StrategyId": 0, "OriginalName": "string", "DisplayName": "string", "BaseMonthlyCost": 0.1, "MarkupDollars": 0.1, "SiteMonthlyCost": 0.1, "ShortDescription": "string", "IsAlive": true } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutotradedStrategies
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetAutotradedStrategies?PersonId=0'{ "Results": [ { "Id": 0, "PersonId": 0, "Account": "string", "ScalingPercentage": 0.1, "StrategyId": 0, "StrategyName": "string", "BrokerId": 0, "BrokerName": "string", "StartDate": "2019-08-24T14:15:22Z", "LastModified": "2019-08-24T14:15:22Z" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutotraders
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/GetAutotraders{ "Results": [ { "Id": 0, "PersonId": 0, "Account": "string", "ScalingPercentage": 0.1, "StrategyId": 0, "StrategyName": "string", "BrokerId": 0, "BrokerName": "string", "StartDate": "2019-08-24T14:15:22Z", "LastModified": "2019-08-24T14:15:22Z" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutotradeSettings
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetAutotradeSettings?PersonId=0'{ "Results": [ { "Id": 0, "PersonId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "Country": "string", "State": "string", "Language": "string", "SiteDomain": "string", "BrokerId": 0, "Connection": "string", "IntroducingBrokerId": 0, "IntroducingBroker": "string", "StrategyId": 0, "StrategyName": "string", "Account": "string", "AccountType": 0, "BrokerUserID": "string", "Currency": "string", "SalesRepId": 0, "SalesRep": "string", "IsTradeLeader": true, "IsManualDiscardedPosition": true, "IgnoreManualOrders": true, "IsConfirmationNeeded": true, "IsSyncEnabled": true, "WillSyncToOpenStocksUSA": true, "WillSyncToOpenStocksEurope": true, "WillSyncToOpenOptionsUSA": true, "WillSyncToOpenOptionsEurope": true, "WillSyncToOpenFuturesUSA": true, "WillSyncToOpenFuturesEurope": true, "WillSyncToOpenFuturesAsia": true, "WillSyncToOpenForex": true, "LastSyncStocksUSA": "2019-08-24T14:15:22Z", "LastSyncStocksEurope": "2019-08-24T14:15:22Z", "LastSyncOptionsUSA": "2019-08-24T14:15:22Z", "LastSyncOptionsEurope": "2019-08-24T14:15:22Z", "LastSyncFuturesUSA": "2019-08-24T14:15:22Z", "LastSyncFuturesEurope": "2019-08-24T14:15:22Z", "LastSyncFuturesAsia": "2019-08-24T14:15:22Z", "LastSyncForex": "2019-08-24T14:15:22Z", "IsBrokerEnabled": true, "IsAutotradeDisabled": true, "IsAutotradeDisabledReason": "string", "SyncDisabledReason": "string", "FirstBrokerActivationDate": "2019-08-24T14:15:22Z", "NetLiquidationValue": 0.1, "NetLiquidationValueDate": "2019-08-24T14:15:22Z", "VirtualLimitOrdersEnabled": true, "ScalingPercentage": 0.1, "SettingsLastUpdateUTC": "2019-08-24T14:15:22Z", "Approved": true, "BrokerAuthorizationStatus": "string", "ClosingOrdersOnly": true, "EnabledFutures": true, "FuturesLong": true, "FuturesShort": true, "MinFutures": 0, "MaxFutures": 0, "EnabledForex": true, "ForexEnabledLong": true, "ForexEnabledShort": true, "ForexLotSize": 0, "MinForex": 0, "MaxForex": 0, "EnabledStocks": true, "StocksLong": true, "StocksShort": true, "MaxStocksDollars": 0, "TradeStocksAsCFD": true, "EnabledOptions": true, "OptionsLong": true, "OptionsShort": true, "MinOptions": 0, "MaxOptions": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Set to TRUE if you want to enable the account for Autotrade. The StartAutotrade endpoint will automatically enable this setting. It may be disabled if your account is delinked by the broker, or if we detect rare unexpected activity in your account such as a margin call, pattern day trader, account becomes restricted by the broker, etc.
- https://api4-wl.collective2.com/Autotrade/SetAutotradeSettings
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/Autotrade/SetAutotradeSettings \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ true ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetDashBoard
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetDashBoard?PersonId=0&Account=string'{ "Results": [ { "PersonId": 0, "BrokerName": "string", "Account": "string", "StrategyId": 0, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "TodayReturn": 0.1, "TotalReturn": 0.1 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetSimResults
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/GetSimResults{ "Results": [ { "PersonId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "Account": "string", "StrategyId": 0, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "StartEquity": 0, "EndEquity": 0, "TotalReturn": 0.1, "TotalDelta": 0.1, "ScalingFactor": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/SearchAccounts
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/SearchAccounts{ "Results": [ { "Id": 0, "PersonId": 0, "Account": "string", "BrokerName": "string", "BrokerId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "Language": "string", "WhiteLabelSiteId": 0, "GeoSite": "string", "CountryCode": "string", "DivisionCode": "string", "AuthenticatedDate": "2019-08-24T14:15:22Z" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutotradeActiveOrders
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetAutotradeActiveOrders?Account=string&PersonId=0'{ "Results": [ { "Id": 0, "OrderId": "string", "StrategyId": 0, "StrategyName": "string", "SignalId": 0, "AvgPx": 0.1, "OrderType": "1", "Side": "1", "OpenClose": "O", "OrderQuantity": 0.1, "Limit": 0.1, "Stop": 0.1, "TIF": "0", "ProfitTarget": 0.1, "StopLoss": 0.1, "DoNotCreateOCAGroup": true, "CancelReplaceSignalId": 0, "ParentSignalId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z", "DoNotSyncToOpen": true, "C2Symbol": { … }, "ExchangeSymbol": { … }, "RejectMessage": "string", "BrokerId": 0, "OrderStatus": "string", "FilledQuantity": 0.1, "AvgFillPrice": 0.1, "PostedDate": "2019-08-24T14:15:22Z", "SignalType": 0, "Info": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutotradeHistoricalOrders
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetAutotradeHistoricalOrders?Account=string&PersonId=0'{ "Results": [ { "Id": 0, "OrderId": "string", "StrategyId": 0, "StrategyName": "string", "SignalId": 0, "AvgPx": 0.1, "OrderType": "1", "Side": "1", "OpenClose": "O", "OrderQuantity": 0.1, "Limit": 0.1, "Stop": 0.1, "TIF": "0", "ProfitTarget": 0.1, "StopLoss": 0.1, "DoNotCreateOCAGroup": true, "CancelReplaceSignalId": 0, "ParentSignalId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z", "DoNotSyncToOpen": true, "C2Symbol": { … }, "ExchangeSymbol": { … }, "RejectMessage": "string", "BrokerId": 0, "OrderStatus": "string", "FilledQuantity": 0.1, "AvgFillPrice": 0.1, "PostedDate": "2019-08-24T14:15:22Z", "SignalType": 0, "Info": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutoTradeOpenPositions
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetAutoTradeOpenPositions?Account=string'{ "Results": [ { "StrategyId": 0, "Quantity": 0.1, "AvgPx": 0.1, "C2Symbol": { … }, "ExchangeSymbol": { … }, "StrategyName": "string", "Currency": "string", "OpenedDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/NewAutotradeOrder
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Autotrade/NewAutotradeOrder \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "SignalId": 0, "ProfitTargetSignalId": 0, "StopLossSignalId": 0, "ExitSignalsOCAGroupId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/CancelAutotradeOrder
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X DELETE \
'https://api4-wl.collective2.com/Autotrade/CancelAutotradeOrder?Account=string&PersonId=0&OrderId=string'{ "Results": [ { "SignalId": 0, "ProfitTargetSignalId": 0, "StopLossSignalId": 0, "ExitSignalsOCAGroupId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/ReplaceAutotradeOrder
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/Autotrade/ReplaceAutotradeOrder \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "SignalId": 0, "ProfitTargetSignalId": 0, "StopLossSignalId": 0, "ExitSignalsOCAGroupId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetBrokers
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/GetBrokers{ "Results": [ { "Id": 0, "Name": "string", "IsEnabled": true, "ConnectionName": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/SearchAutotradedAccounts
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/SearchAutotradedAccounts{ "Results": [ { "Id": 0, "PersonId": 0, "Account": "string", "BrokerId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "StrategyId": 0, "StrategyName": "string", "IsSyncEnabled": true, "IsAutotrading": true, "IsAutotradeDisabled": true, "IsAutotradeDisabledReason": "string", "SyncDisabledReason": "string", "SettingsLastUpdateUTC": "2019-08-24T14:15:22Z" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetAutotradeStats
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/GetAutotradeStats{ "Results": [ { "Id": 0, "DateUtc": "2019-08-24T14:15:22Z", "Account": "string", "PersonId": 0, "BrokerId": 0, "IB": 0, "SalesRep": 0, "WhiteLabelSiteId": 0, "GeoSiteId": "string", "NetLiquidationValue": 0.1, "LastBrokerNetLiquidationUpdateUtc": "2019-08-24T14:15:22Z", "FirstBrokerActivationDateUTC": "2019-08-24T14:15:22Z", "AutotradedStocksStrategies": 0, "AutotradedFuturesStrategies": 0, "AutotradedOptionsStrategies": 0, "AutotradedForexStrategies": 0, "AutotradedCryptoStrategies": 0, "UniqueAutotradedStrategies": 0, "BrokertransmitStocksStrategies": 0, "BrokertransmitFuturesStrategies": 0, "BrokertransmitOptionsStrategies": 0, "BrokertransmitForexStrategies": 0, "BrokertransmitCryptoStrategies": 0, "UniqueBrokertransmitStrategies": 0, "PlatformtransmitStocksStrategies": 0, "PlatformtransmitFuturesStrategies": 0, "PlatformtransmitOptionsStrategies": 0, "PlatformtransmitForexStrategies": 0, "PlatformtransmitCryptoStrategies": 0, "UniquePlatformtransmitStrategies": 0, "IsSyncEnabled": true, "IsManualConfirmationEnabled": true, "IsDisabled": true, "Currency": "string", "Email": "string", "FirstName": "string", "LastName": "string", "IsBrokerEnabled": true } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/GetPendingAccounts
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/GetPendingAccounts{ "Results": [ { "Id": 0, "Status": "string", "DeclinedUTC": "2019-08-24T14:15:22Z", "UtcDate": "2019-08-24T14:15:22Z", "Account": "string", "PersonId": 0, "BrokerName": "string", "BrokerId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "Country": "string", "State": "string", "Language": "string", "WhiteLabelSiteId": 0, "GeoSiteId": "string", "SiteDomain": "string", "Connection": "string", "IntroducingBrokerId": 0, "IntroducingBroker": "string", "StrategyId": 0, "StrategyName": "string", "SalesRepId": 0, "SalesRep": "string", "IsTradeLeader": true, "FirstBrokerActivationDate": "2019-08-24T14:15:22Z", "NetLiquidationValue": 0.1, "NetLiquidationValueDate": "2019-08-24T14:15:22Z", "EnabledFutures": true, "EnabledForex": true, "EnabledStocks": true, "EnabledOptions": true } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
(optional) TRUE to enable the Futures asset class when autotrading this strategy. Default is FALSE
(optional) Set a maximum number of contracts to hold in a position for this strategy
(optional) TRUE to enable autotrading Forex for this strategy. Default is FALSE
(optional) Set a maximum number of units (each unit on C2 is 1000 currency units) to hold in a position for this strategy
(optional) TRUE to enable autotrading Stocks for this strategy. Default is FALSE
(optional) Set a maximum number of dollars to hold in a position for this strategy (no decimals)
(optional) TRUE to enable autotrading Options for this strategy. Default is FALSE
(optional) TRUE to enable the shorting of Options when autotrading this strategy. Default is FALSE
(optional) Set a maximum number of contracts to hold in a position for this strategy
(optional) TRUE to prevent joining currently open positions in the strategy. Only applies to new Autotrade setups: this setting must not be set when modifing an existing Autotrade setup.
(optional) Dollar value of the automated stop loss which will rest in addition to the strategy stop loss orders
(optional) The Brokerage account username. Only needed for specific Brokers, please enquire with support at help@collective2.com
- https://api4-wl.collective2.com/Autotrade/StartAutotrade
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Autotrade/StartAutotrade \
-H 'Content-Type: application/json' \
-d '{}'Request
Poll one AutoTrade approval request created by StartAutotrade. Status is one of PendingCustomer (your customer has not finished the approval), Processing (approved; we are switching trading on), PendingBroker (approved; broker-side enablement pending, typically 5-10 business days), Completed (trading is on), Failed, Expired, or Superseded (a newer StartAutotrade or a StopAutotrade replaced it). ApprovalUrl is present only while the request is PendingCustomer. This poll is the source of truth; the completion webhook is a courtesy signal. Non-Paginated endpoint.
- https://api4-wl.collective2.com/Autotrade/GetAutotradeApprovalStatus
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Autotrade/GetAutotradeApprovalStatus?RequestId=string'{ "Results": [ { "RequestId": "string", "Status": "string", "ApprovalUrl": "string", "CreatedUtc": "2019-08-24T14:15:22Z", "ExpiresUtc": "2019-08-24T14:15:22Z", "CompletedUtc": "2019-08-24T14:15:22Z", "PersonId": 0, "StrategyId": 0, "SupersededByRequestId": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Autotrade/ResetPaperTrade
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/Autotrade/ResetPaperTrade \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ true ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Return the AutoTrading license plans available on your White Label site, together with the site's fee policy: who pays the AutoTrade fee (the end customer, the site owner, or nobody) and, when the site owner is billed for usage, the published pricing tiers. The site is the one your API key belongs to; C2 admin keys may pass WhiteLabelSiteId to view any site. Non-Paginated endpoint.
- https://api4-wl.collective2.com/Autotrade/GetAutotradePlans
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Autotrade/GetAutotradePlans{ "Results": [ { "WhiteLabelSiteId": 0, "MonthlyPlans": [ … ], "AnnualPlans": [ … ], "FeePolicy": { … } } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Start simulated subscriptions for a customer on your White Label site. A simulated subscription lets the customer follow a strategy's aggregate performance without trading real money and without access to its open positions or live signals. You can request 1 to 8 strategies in one call; strategies that cannot be started are returned in the Skipped list with a reason rather than failing the whole request. The site is always the one your API key belongs to, and the customer must belong to that site. Non-Paginated endpoint.
The PersonId of the customer to start simulated subscriptions for. The customer must belong to your White Label site
- https://api4-wl.collective2.com/Autotrade/StartSim
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Autotrade/StartSim \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "PersonId": 0, "Created": [ … ], "Skipped": [ … ] } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Stop a customer's simulated subscription to a strategy on your White Label site. Only simulated subscriptions can be stopped through this endpoint; real subscriptions are refused. The site is always the one your API key belongs to, and the customer must belong to that site. Non-Paginated endpoint.
- https://api4-wl.collective2.com/Autotrade/StopSim
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X DELETE \
'https://api4-wl.collective2.com/Autotrade/StopSim?PersonId=0&StrategyId=0'{ "Results": [ { "PersonId": 0, "StrategyId": 0, "StoppedSubscriptionId": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/Hello
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/General/Hello \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ "string" ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetAccessKey
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/General/GetAccessKey{ "Results": [ { "Id": 0, "AccessKey": "string", "PersonId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "WhiteLabelSiteId": 0, "Role": "string", "Message": "string", "CreateDate": "2019-08-24T14:15:22Z", "DeleteDate": "2019-08-24T14:15:22Z", "Comment": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
The person's subdivision (e.g. provinces or states). See https://en.wikipedia.org/wiki/ISO_3166-2
- https://api4-wl.collective2.com/General/AddProfile
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/General/AddProfile \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "PersonId": 0, "CSRF": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/UpdateProfile
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/General/UpdateProfile \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "PersonId": 0, "CSRF": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetProfile
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/General/GetProfile{ "Results": [ { "Id": 0, "Alias": "string", "FirstName": "string", "LastName": "string", "Email": "string", "Phone": "string", "IsPhoneVerified": true, "Language": "string", "WhiteLabelSiteId": 0, "CountryCode": "string", "DivisionCode": "string", "Created": "2019-08-24T14:15:22Z", "LastLoggedIn": "2019-08-24T14:15:22Z", "LastIP": "string", "IsEmailValidated": true, "IsAlive": true, "ApprovedAccounts": [ … ], "IsManager": true, "IsInvestor": true, "GeoSite": "string", "IsGeoSiteAdmin": true, "SupportCompanyName": "string", "SupportSiteURL": "string", "SupportEmail": "string", "Icon": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Search profiles using any field combination. Partial matches will be returned. Paginated endpoint. Only Admins, Geo and White-Label Admins can access this endpoint. If you're a GeoSite admin, you will see all your GeoSite members including your WhiteLabel members. If you're a WhiteLabel admin, you will see your WhiteLabel members, but not other GeoSite members. If you're neither, you will get a 403 error.
The person's country code. Not case-sensitive. (optional) See https://en.wikipedia.org/wiki/ISO_3166-2
The person's subdivision (e.g. provinces or states). Not case-sensitive. (optional) See https://en.wikipedia.org/wiki/ISO_3166-2
(Optional) Set to TRUE to include the profile icon in the response.
- https://api4-wl.collective2.com/General/SearchProfiles
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/General/SearchProfiles{ "Results": [ { "Id": 0, "Alias": "string", "FirstName": "string", "LastName": "string", "Email": "string", "Phone": "string", "IsPhoneVerified": true, "Language": "string", "WhiteLabelSiteId": 0, "CountryCode": "string", "DivisionCode": "string", "Created": "2019-08-24T14:15:22Z", "LastLoggedIn": "2019-08-24T14:15:22Z", "LastIP": "string", "IsEmailValidated": true, "IsAlive": true, "ApprovedAccounts": [ … ], "IsManager": true, "IsInvestor": true, "GeoSite": "string", "IsGeoSiteAdmin": true, "SupportCompanyName": "string", "SupportSiteURL": "string", "SupportEmail": "string", "Icon": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetInvestorPlanSubscriptions
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetInvestorPlanSubscriptions?PersonId=0'{ "Results": [ { "Id": 0, "PersonId": 0, "LicenseType": "string", "LicenseTypeId": 0, "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "IsRecurring": true, "Cost": 0.1 } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetManagerPlanSubscriptions
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetManagerPlanSubscriptions?PersonId=0'{ "Results": [ { "Id": 0, "PersonId": 0, "LicenseType": "string", "LicenseTypeId": 0, "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "IsRecurring": true, "Cost": 0.1 } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetSubscribedStrategies
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetSubscribedStrategies?PersonId=0'{ "Results": [ { "Id": 0, "PersonId": 0, "StrategyId": 0, "StrategyName": "string", "IsSimulation": true, "IsPaperTrade": true, "IsAlive": true, "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "MonthlyCost": 0.1, "NextChargeDate": "2019-08-24T14:15:22Z" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetWhiteLabelSiteUsers
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetWhiteLabelSiteUsers?WhiteLabelSiteId=0'{ "Results": [ { "Id": 0, "Alias": "string", "FirstName": "string", "LastName": "string", "Email": "string", "Phone": "string", "Language": "string", "IsWhiteLabelSiteAdmin": true, "WhiteLabelSiteId": 0, "WhiteLabelPermissions": "string", "CountryCode": "string", "DivisionCode": "string", "Created": "2019-08-24T14:15:22Z", "LastLoggedIn": "2019-08-24T14:15:22Z", "LastIP": "string", "IsEmailValidated": true, "IsAlive": true, "IsManager": true, "IsInvestor": true, "GeoSite": "string", "IsGeoSiteAdmin": true } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetKYCScore
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/General/GetKYCScore{ "Results": [ { "Id": 0, "PersonId": 0, "Created": "2019-08-24T14:15:22Z", "Approved": "2019-08-24T14:15:22Z", "Started": "2019-08-24T14:15:22Z", "Finished": "2019-08-24T14:15:22Z", "RedirectedToKYCTimes": 0, "Score": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/UpdateKYCScore
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/General/UpdateKYCScore \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "Id": 0, "PersonId": 0, "Created": "2019-08-24T14:15:22Z", "Approved": "2019-08-24T14:15:22Z", "Started": "2019-08-24T14:15:22Z", "Finished": "2019-08-24T14:15:22Z", "RedirectedToKYCTimes": 0, "Score": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetKYCInfo
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetKYCInfo?UserToken=string'{ "Results": [ { "Id": 0, "PersonId": 0, "FirstName": "string", "LastName": "string", "Email": "string", "Phone": "string", "IsPhoneVerified": true, "Street": "string", "City": "string", "Province": "string", "PostCode": "string", "Country": "string", "PhotoId1": "string", "PhotoId1Title": "string", "PhotoId2": "string", "PhotoId2Title": "string", "WhiteLabelSiteId": 0, "GeoSite": "string", "SiteURL": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/AddKYCInfo
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/General/AddKYCInfo \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "Id": 0, "PersonId": 0, "Created": "2019-08-24T14:15:22Z", "Approved": "2019-08-24T14:15:22Z", "Started": "2019-08-24T14:15:22Z", "Finished": "2019-08-24T14:15:22Z", "RedirectedToKYCTimes": 0, "Score": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/General/GetPhoneAlreadyExists
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetPhoneAlreadyExists?Phone=string'{ "Results": [ true ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Export instrumentation data for a White Label site, including session events, subscriptions, autotrade account stability, and executions within the requested time window. These are SSO/login handshakes, not full pageview analytics. Only WhiteLabel admins can access this endpolong. Non-Paginated endpolong.
(Optional) The start of the export window as a Unix timestamp (seconds). If omitted, DaysBack is used to calculate the window start.
(Optional) The end of the export window as a Unix timestamp (seconds). Defaults to now if omitted.
(Optional) The lookback window in days, used when FromWhen is omitted. Default: 30.
(Optional) Maximum number of session events to return. Default: 2000, max: 5000.
(Optional) Maximum number of subscriptions to return. Default: 2000, max: 5000.
- https://api4-wl.collective2.com/General/GetWlInstrumentationExport
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/General/GetWlInstrumentationExport?WhiteLabelSiteId=0'{ "Results": [ { "WhiteLabelSiteId": 0, "WhiteLabelSiteName": "string", "WhiteLabelSiteDomain": "string", "RequestedWindow": { … }, "Filters": { … }, "SessionEventSummary": { … }, "SessionEvents": [ … ], "Autotrade": { … }, "Subscriptions": [ … ], "AccountStability": [ … ], "Executions": [ … ], "Summary": { … } } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyDetails
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyDetails?StrategyId=0'{ "Results": [ { "StrategyId": 0, "StrategyName": "string", "IsAlive": true, "IsResellable": true, "StartDate": "2019-08-24T14:15:22Z", "PrimarySecurityTypes": "string", "SecurityTypesEnabled": { … }, "MonthlyCost": 0.1, "StrategyOwnerId": 0, "StrategyOwnerName": "string", "SuggestedCapital": 0, "LastModified": "2019-08-24T14:15:22Z", "Score": 0, "IsTradeOwnSystem": true, "TradeOwnSystemPercent": 0.1, "WhiteLabelSiteId": 0, "IsPrivate": true, "AUM": 0, "AUM_NumberOfAccounts": 0, "Return": 0.1, "ReturnLabel": "string", "Equity": 0.1, "Cash": 0.1, "StartingCash": 0.1, "ProfitFactor": 0.1, "CashDividends": 0.1, "BuyingPower": 0.1, "MarginUsed": 0.1, "AgeInDays": 0, "ModelAccountValue": 0.1, "NumTrades": 0, "NumWinners": 0, "NumLosers": 0, "PercentWinTrades": 0.1, "SumDollarWinners": 0.1, "SumDollarLosers": 0.1, "NumMonths": 0, "WinMonthsInUI": 0, "WinMonths": 0.1, "WinMonthsRatio": 0.1, "MaxDrawdown": 0.1, "MaxDrawdownDays": 0.1, "MaxDrawdownStartDate": "string", "MaxDrawdownEndDate": "string", "AvgWinDollars": 0.1, "AvgLossDollars": 0.1, "AvgTradeDuration": 0.1, "CorrelationSP500": 0.1, "SP500Return": 0.1, "ReturnVsSP500": 0.1, "AvgLeverage": 0.1, "MaxLeverage": 0.1, "CorrelationToSP500": 0.1, "Alpha": 0.1, "Beta": 0.1, "Treynor": 0.1, "Sortino": 0.1, "Sharpe": 0.1, "Calmar": 0.1, "NoSubsAllowed": true, "LatestTrade": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/SearchStrategies
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Strategies/SearchStrategies{ "Results": [ { "Id": 0, "StrategyId": 0, "IsAlive": true, "IsPrivate": true, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "SecurityTypesEnabled": { … }, "MonthlyCost": 0.1, "StrategyOwnerId": 0, "WhiteLabelSiteId": 0, "IsTradeOwnSystem": true, "IsResellable": true } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetLeaderBoard
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Strategies/GetLeaderBoard{ "Results": [ { "Id": 0, "StrategyId": 0, "IsAlive": true, "IsPrivate": true, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "SecurityTypesEnabled": { … }, "MonthlyCost": 0.1, "StrategyOwnerId": 0, "WhiteLabelSiteId": 0, "IsTradeOwnSystem": true, "IsResellable": true } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetWatchLists
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetWatchLists?PersonId=0'{ "Results": [ { "Id": 0, "PersonId": 0, "CreatedDate": "2019-08-24T14:15:22Z", "ListName": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetWatchListMembers
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetWatchListMembers?PersonId=0&WatchListId=0'{ "Results": [ { "Id": 0, "AddedDate": "2019-08-24T14:15:22Z", "StrategyId": 0, "PersonId": 0 } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
The WatchList Id. Required except when ModificationAction=ADD and ModificationSource=LIST
The Type of list to modify. Valid values are 'LIST' (for the whole watchlist), 'MEMBER' (for the list items)
- https://api4-wl.collective2.com/Strategies/ManageWatchList
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Strategies/ManageWatchList \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ true ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/ManageWatchList
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X DELETE \
'https://api4-wl.collective2.com/Strategies/ManageWatchList?PersonId=0&ModificationSource=string&ModificationAction=string'{ "Results": [ true ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetSubscribers
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetSubscribers?StrategyId=0'{ "Results": [ { "Id": 0, "StrategyId": 0, "StrategyName": "string", "PersonId": 0, "SubscriptionId": 0, "SubscriberId": 0, "IsStrategyOwner": true, "Alias": "string", "FirstName": "string", "LastName": "string", "Email": "string", "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "BasePrice": 0.1, "Markup": 0.1, "Cost": 0.1, "LastTransactionDate": "2019-08-24T14:15:22Z", "LastTransactionAmount": 0.1, "IsResale": 0.1, "WhiteLabelSiteId": 0, "GeoSiteId": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetSubscriptionRevenue
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Strategies/GetSubscriptionRevenue{ "Results": [ { "Id": 0, "StrategyId": 0, "StrategyName": "string", "PersonId": 0, "SubscriptionId": 0, "SubscriberId": 0, "IsStrategyOwner": true, "Alias": "string", "FirstName": "string", "LastName": "string", "Email": "string", "StartDate": "2019-08-24T14:15:22Z", "EndDate": "2019-08-24T14:15:22Z", "BasePrice": 0.1, "Markup": 0.1, "Cost": 0.1, "LastTransactionDate": "2019-08-24T14:15:22Z", "LastTransactionAmount": 0.1, "IsResale": 0.1, "WhiteLabelSiteId": 0, "GeoSiteId": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/NewStrategyOrder
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Strategies/NewStrategyOrder \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "SignalId": 0, "ProfitTargetSignalId": 0, "StopLossSignalId": 0, "ExitSignalsOCAGroupId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/CancelStrategyOrder
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X DELETE \
'https://api4-wl.collective2.com/Strategies/CancelStrategyOrder?StrategyId=0&SignalId=0'{ "Results": [ { "SignalId": 0, "ProfitTargetSignalId": 0, "StopLossSignalId": 0, "ExitSignalsOCAGroupId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/ReplaceStrategyOrder
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/Strategies/ReplaceStrategyOrder \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "SignalId": 0, "ProfitTargetSignalId": 0, "StopLossSignalId": 0, "ExitSignalsOCAGroupId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyActiveOrders
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyActiveOrders?StrategyIds=0'{ "Results": [ { "Id": 0, "OrderId": "string", "StrategyId": 0, "StrategyName": "string", "SignalId": 0, "AvgPx": 0.1, "OrderType": "1", "Side": "1", "OpenClose": "O", "OrderQuantity": 0.1, "Limit": 0.1, "Stop": 0.1, "TIF": "0", "ProfitTarget": 0.1, "StopLoss": 0.1, "DoNotCreateOCAGroup": true, "CancelReplaceSignalId": 0, "ParentSignalId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z", "DoNotSyncToOpen": true, "C2Symbol": { … }, "ExchangeSymbol": { … }, "RejectMessage": "string", "BrokerId": 0, "OrderStatus": "string", "FilledQuantity": 0.1, "AvgFillPrice": 0.1, "PostedDate": "2019-08-24T14:15:22Z", "SignalType": 0, "Info": "string" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyOpenPositions
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyOpenPositions?StrategyIds=0'{ "Results": [ { "StrategyId": 0, "Quantity": 0.1, "AvgPx": 0.1, "C2Symbol": { … }, "ExchangeSymbol": { … }, "StrategyName": "string", "Currency": "string", "OpenedDate": "2019-08-24T14:15:22Z" } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalOrders
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalOrders{ "Results": [ { "Id": 0, "OrderId": "string", "StrategyId": 0, "StrategyName": "string", "SignalId": 0, "AvgPx": 0.1, "OrderType": "1", "Side": "1", "OpenClose": "O", "OrderQuantity": 0.1, "Limit": 0.1, "Stop": 0.1, "TIF": "0", "ProfitTarget": 0.1, "StopLoss": 0.1, "DoNotCreateOCAGroup": true, "CancelReplaceSignalId": 0, "ParentSignalId": 0, "ParkedUntilDate": "2019-08-24T14:15:22Z", "DoNotSyncToOpen": true, "C2Symbol": { … }, "ExchangeSymbol": { … }, "RejectMessage": "string", "BrokerId": 0, "OrderStatus": "string", "FilledQuantity": 0.1, "AvgFillPrice": 0.1, "PostedDate": "2019-08-24T14:15:22Z", "SignalType": 0, "Info": "string" } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalClosedTrades
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalClosedTrades?CommissionPlan=string'{ "Results": [ { "Id": 0, "TradeId": 0, "StrategyId": 0, "OpenDate": "2019-08-24T14:15:22Z", "CloseDate": "2019-08-24T14:15:22Z", "AvgOpenFillPrice": 0.1, "AvgCloseFillPrice": 0.1, "OpenedQuantity": 0.1, "ClosedQuantity": 0.1, "OpenSide": "1", "CloseSide": "1", "ProfitLoss": 0.1, "Commission": 0.1, "MaxDrawdown": 0.1, "MaxDrawdown_DateCalculated": "2019-08-24T14:15:22Z", "MaxDrawdown_WorstPrice": 0.1, "MaxDrawdown_WorstPriceDate": "2019-08-24T14:15:22Z", "MaxDrawdown_StrategyEquity": 0.1, "MaxDrawdown_EntryPrice": 0.1, "MaxDrawdown_OpenQuantity": 0.1, "C2Symbol": { … }, "ExchangeSymbol": { … } } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalEquity
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalEquity?StrategyId=0&CommissionPlan=string'{ "Results": [ { "StrategyId": 0, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "SecurityTypesEnabled": { … }, "MonthlyCost": 0.1, "StrategyOwnerId": 0, "MonthlyResults": [ … ] } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalDailyEquity
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyHistoricalDailyEquity?StrategyId=0&CommissionPlan=string'{ "Results": [ { "StrategyId": 0, "StrategyName": "string", "StartDate": "2019-08-24T14:15:22Z", "SecurityTypesEnabled": { … }, "MonthlyCost": 0.1, "StrategyOwnerId": 0, "MonthlyResults": [ … ] } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/AddStrategy
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Strategies/AddStrategy \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "StrategyId": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/UpdateStrategy
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X PUT \
https://api4-wl.collective2.com/Strategies/UpdateStrategy \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "StrategyId": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/v2/Strategies/SetDesiredPositions
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/v2/Strategies/SetDesiredPositions \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "NewSignals": [ … ], "CanceledSignals": [ … ], "RejectedSignals": [ … ] } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetSupportedSymbols
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Strategies/GetSupportedSymbols{ "Results": [ { "Id": 0, "Currency": "string", "Description": "string", "PointValue": 0.1, "TickSize": 0.1, "DecimalPrecision": 0, "C2Symbol": { … }, "ExchangeSymbol": { … }, "MarginRequirements": { … }, "BrokerMarginRequirements": [ … ] } ], "Pagination": { "prev_cursor": "string", "next_cursor": "string" }, "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetRule575Status
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetRule575Status?WhiteLabelSiteId=0'{ "Results": [ { "ExceptionSummary": { … }, "Exceptions": [ … ], "Rule575": { … } } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
- https://api4-wl.collective2.com/Strategies/GetStrategyMuxStatus
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
'https://api4-wl.collective2.com/Strategies/GetStrategyMuxStatus?WhiteLabelSiteId=0'{ "Results": [ { "FamilyGuid": 0, "VariantGuid": 0, "WhiteLabelSiteId": 0, "WhiteLabelSiteName": "string", "Ok": "string", "DriftGraceSecs": 0, "Summary": { … }, "ExceptionSummary": { … }, "SyncSummary": [ … ], "SyncDetails": [ … ], "Exceptions": [ … ] } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Return the catalog of strategies offered on your White Label site, priced as your customers see them. Each row shows the strategy's original name, the display name used on your site (when the site resells it under a custom name), the strategy's base monthly cost, any site markup in dollars, and the resulting monthly cost on your site. The site is the one your API key belongs to; C2 admin keys may pass WhiteLabelSiteId to view any site. Non-Paginated endpoint.
- https://api4-wl.collective2.com/Strategies/GetSiteCatalog
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X GET \
https://api4-wl.collective2.com/Strategies/GetSiteCatalog{ "Results": [ { "Id": 0, "StrategyId": 0, "OriginalName": "string", "DisplayName": "string", "BaseMonthlyCost": 0.1, "MarkupDollars": 0.1, "SiteMonthlyCost": 0.1, "ShortDescription": "string", "IsAlive": true } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }
Request
Add strategies to, or remove strategies from, your White Label site's catalog — the API version of the console's add/remove-strategy toggle. Send a list of StrategyIds (1 to 100 per call) with Action "Add" or "Remove", and get a per-strategy result back. The operation is idempotent: a strategy already in the requested state is reported as a success ("already_in_catalog" / "not_in_catalog"), so replays are safe. Removal is refused per-strategy while the strategy still has active paid subscribers who are customers of your site (the result carries the count); simulated subscriptions never block removal. The site is the one your API key belongs to; C2 admin keys may pass WhiteLabelSiteId to manage any site. Non-Paginated endpoint.
- https://api4-wl.collective2.com/Strategies/UpdateSiteCatalog
- cURL
- JS
- Node.js
- Python
- Go
- Ruby
- Java 8
- C#
- PHP
curl -i -X POST \
https://api4-wl.collective2.com/Strategies/UpdateSiteCatalog \
-H 'Content-Type: application/json' \
-d '{}'{ "Results": [ { "StrategyId": 0, "Ok": true, "Status": "string", "Reason": "string", "Message": "string", "ActiveSubscribers": 0 } ], "ResponseStatus": { "ErrorCode": "string", "Message": "string", "Errors": [ { … } ] } }