Custom Code Examples
The examples in this document intend to demonstrate how you can send signals to TradersPost from custom programming languages like PHP, Python, etc.
Custom Code
mkdir traderspost
cd traderspostcomposer require symfony/http-client<?php
// traderspost-test.php
require 'vendor/autoload.php';
use Symfony\Component\HttpClient\HttpClient;
$webhookUrl = 'https://traderspost.io/trading/webhook/9d9f8620-d60d-416e-827e-0ec01ef93532/9b5b8c4264421f5515fd4fcb6571af50';
$client = HttpClient::create();
$response = $client->request('POST', $webhookUrl, [
'json' => [
'ticker' => 'AMD',
'action' => 'buy',
'price' => 85.50,
]
]);
echo $response->getContent();cURL
PHP
Python
Ruby
JavaScript
Go
C++
C#
Java
Last updated
Was this helpful?