All URIs are relative to https://api-v2.upstox.com
Method | HTTP request | Description |
---|---|---|
GetBrokerage | GET /charges/brokerage | Brokerage details |
GetBrokerageResponse GetBrokerage (string instrumentToken, int? quantity, string product, string transactionType, float? price, string apiVersion)
Brokerage details
Compute Brokerage Charges
using System;
using System.Diagnostics;
using UpstoxClient.Api;
using UpstoxClient.Client;
using UpstoxClient.Model;
namespace Example
{
public class GetBrokerageExample
{
public void main()
{
// Configure OAuth2 access token for authorization: OAUTH2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ChargeApi();
var instrumentToken = instrumentToken_example; // string | Key of the instrument
var quantity = 56; // int? | Quantity with which the order is to be placed
var product = product_example; // string | Product with which the order is to be placed
var transactionType = transactionType_example; // string | Indicates whether its a BUY or SELL order
var price = 3.4; // float? | Price with which the order is to be placed
var apiVersion = apiVersion_example; // string | API Version Header
try
{
// Brokerage details
GetBrokerageResponse result = apiInstance.GetBrokerage(instrumentToken, quantity, product, transactionType, price, apiVersion);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChargeApi.GetBrokerage: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
instrumentToken | string | Key of the instrument | |
quantity | int? | Quantity with which the order is to be placed | |
product | string | Product with which the order is to be placed | |
transactionType | string | Indicates whether its a BUY or SELL order | |
price | float? | Price with which the order is to be placed | |
apiVersion | string | API Version Header |
[Back to top] [Back to API list] [Back to Model list] [Back to README]