Observed since 20 Oct, 20:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A React component for integrating TradingView webhooks with trading platforms. This component provides a user interface for generating webhook URLs and JSON payloads that can be used to connect TradingView alerts with trading accounts.
A React component for integrating TradingView webhooks with trading platforms. This component provides a user interface for generating webhook URLs and JSON payloads that can be used to connect TradingView alerts with trading accounts.
npm install trading-webhook-component
This component requires the following peer dependencies:
{
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"moment": "^2.29.0",
"react-outside-click-handler": "^1.3.0"
}
import { Webhook } from 'trading-webhook-component';
function App() {
return (
<Webhook
closeWebHookModal={() => {}}
platform="5PTRADE"
style={{ width: '800px' }}
/>
);
}
| Prop | Type | Required | Description |
|---|---|---|---|
| closeWebHookModal | function | No | Callback function to close the webhook modal |
| style | CSSProperties | No | Custom styles to apply to the component |
| platform | "5PTRADE" | "Derivative360" | Yes | Trading platform identifier |
The component consists of three main sections:
URL Generation
JSON Object Generation
Educational Resources
The component expects the following API endpoints to be available:
getWebHookDetails(clientCode: string): Promise<WebHookResponse>
getWebHookToken(validity: number, clientCode: string): Promise<TokenResponse>
getBaskets(clientCode: string): Promise<BasketResponse>
type WebhookProps = {
closeWebHookModal?: () => void;
style?: CSSProperties;
platform: "5PTRADE" | "Derivative360";
};
type OrderDataType = {
RequestType: string;
PlaceOrderReqList: SingleOrderDataType[] | BasketOrderType[];
};
type SingleOrderDataType = {
transactionType: string;
orderType: string;
quantity: number;
price: string;
exchange: string;
Symbol: string;
productType: string;
};
The component uses SCSS modules for styling. You can override the default styles by providing your own style:
style={{ height: "800px" }}
The component includes built-in error handling for:
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.20Registry latest | 11 Sept 2025 | 84 | |
| 0.0.19 | 11 Sept 2025 | 89 | |
| 0.0.18 | 11 Sept 2025 | 89 | |
| 0.0.17 | 11 Sept 2025 | 89 | |
| 0.0.16 | 11 Sept 2025 | 89 | |
| 0.0.15 | 11 Sept 2025 | 89 | |
| 0.0.14 | 11 Sept 2025 | 89 | |
| 0.0.13 | 11 Sept 2025 | 89 | |
| 0.0.12 | 11 Sept 2025 | 89 | |
| 0.0.11 | 11 Sept 2025 | 89 | |
| 0.0.10 | 11 Sept 2025 | 89 | |
| 0.0.9 | 11 Sept 2025 | 89 | |
| 0.0.8 | 11 Sept 2025 | 89 | |
| 0.0.7 | 11 Sept 2025 | 89 | |
| 0.0.6 | 11 Sept 2025 | 89 | |
| 0.0.5 | 11 Sept 2025 | 89 | |
| 0.0.4 | 10 Sept 2025 | 89 | |
| 0.0.3 | 10 Sept 2025 | 89 | |
| 0.0.2 | 10 Sept 2025 | 134 | |
| 0.0.1 | 10 Sept 2025 | 134 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1e76e95e1911467a6de3afc2743786421d3dee333fe8b0327256badc6498f41e