Login Page - Create Account

Support Board


Date/Time: Mon, 20 May 2024 02:13:53 +0000



Post From: website API error

[2018-12-20 16:03:55]
User474744 - Posts: 22
I'm trying to connect to the webapi using a POST method from a windows powershell client using the information on your site at Sierra Chart Website APIs

The powershell code I'm using is below, replacing myusername and mypassword with my account details

$postParams = @{AdminUsername='myusername';AdminPassword='mypassword';
UserSCUsername='myusername';Service='GetTradeOrderFills';
StartDateTimeUTC='2018-12-20 00:00:00'}
Invoke-WebRequest -Uri https://www.sierrachart.com/API.php -Method POST -Body $postParams