Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 28883de

Browse files
authored
Merge pull request #223 from utkarsha-deriv/utkarsha/redirect-link-CTA
2 parents 8903311 + 7ef24eb commit 28883de

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/core-concepts/api-calls-anatomy/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ All API calls have a send functionality for making a request and receiving a res
2424

2525
Several API calls provide the `subscribe` functionality. When you subscribe to an API call, you will receive a continuous stream from data of this particular API call.
2626

27-
Some of these API calls automatically subscribe (e.g. [ticks](https://api.deriv.com/api-explorer#ticks)) and some have an optional `subscribe` field. If you pass `1` to the `subscribe` field, the subscription will start and the server will continue to send the requested data until you unsubscribe by calling the `Forget` or `Forget all` API calls.
27+
Some of these API calls automatically subscribe (e.g. [ticks](/api-explorer#ticks)) and some have an optional `subscribe` field. If you pass `1` to the `subscribe` field, the subscription will start and the server will continue to send the requested data until you unsubscribe by calling the `Forget` or `Forget all` API calls.
2828

29-
For example, you can call [Tick History](https://api.deriv.com/api-explorer#ticks_history) to receive tick history data. But when you add the `subscribe` option to this call, you will receive the tick history data you requested in the first response, and you will continue to receive a new response every time there is a new tick published by the server for the given symbol.
29+
For example, you can call [Tick History](/api-explorer#ticks_history) to receive tick history data. But when you add the `subscribe` option to this call, you will receive the tick history data you requested in the first response, and you will continue to receive a new response every time there is a new tick published by the server for the given symbol.
3030

3131
In the message stream from `subscribe`, there is a field called `subscription`. This is the `Stream ID`. With this ID, you can identify the message stream in your logic and stop the stream with `Forget` and `Forget All` API calls.
3232

@@ -41,7 +41,7 @@ If you call the API with the `send` functionality, then the server will only sen
4141
If you want to stop the message stream created by `subscribe`, you will have to call the `Forget` API call with the correct `Stream ID`. Otherwise, you can use the `Forget All` API call to stop streams by their `Method name`.
4242

4343
:::caution
44-
For more information on the `Forget` API call, have a look at [Forget](https://api.deriv.com/api-explorer#forget) and [Forget All](https://api.deriv.com/api-explorer#forget_all) in the API explorer.
44+
For more information on the `Forget` API call, have a look at [Forget](/api-explorer#forget) and [Forget All](/api-explorer#forget_all) in the API explorer.
4545
:::
4646

4747
## Request data
@@ -72,7 +72,7 @@ The request data for this call is as below:
7272
}
7373
```
7474

75-
The `residence_list` field is the `method name` for the call and is required. There may be other required fields related to this type of the request you want to send. To know more about `Residence List` and other API calls, please check them out in [API Explorer](https://api.deriv.com/api-explorer#residence_list).
75+
The `residence_list` field is the `method name` for the call and is required. There may be other required fields related to this type of the request you want to send. To know more about `Residence List` and other API calls, please check them out in [API Explorer](/api-explorer#residence_list).
7676

7777
### Optional fields
7878

@@ -87,7 +87,7 @@ Whatever you pass to this field will be returned back to you inside a `response`
8787
You may need to `tag` your requests and pass them through our `WebSocket` calls. You can do so by passing a `number` to this field. It can be helpful when you need to map `requests` to `responses`.
8888

8989
:::caution
90-
To learn about additional optional fields specific to each API call, please refer to our [API Explorer](https://api.deriv.com/api-explorer).
90+
To learn about additional optional fields specific to each API call, please refer to our [API Explorer](/api-explorer).
9191
:::
9292

9393
## Response data
@@ -163,7 +163,7 @@ The response for the `Residence List` call:
163163
};
164164
```
165165

166-
Here the `residence_list` is the `method name`, and it contains the actual data you requested. To keep it short, we haven't included the rest of the array. You can check the actual response [here](https://api.deriv.com/api-explorer#residence_list).
166+
Here the `residence_list` is the `method name`, and it contains the actual data you requested. To keep it short, we haven't included the rest of the array. You can check the actual response [here](/api-explorer#residence_list).
167167

168168
#### The `echo_req` field
169169

docs/core-concepts/authorization-authentication/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Please refer to [Setting up a Deriv application](docs/setting-up-a-deriv-applica
3333

3434
An API token is a unique identifier of a client that requests access from a server. It's the simplest way of authorisation.
3535

36-
The access level for each API token has to match the required access level of each API call, which can be found in the [API Explorer](https://api.deriv.com/api-explorer) as well.
36+
The access level for each API token has to match the required access level of each API call, which can be found in the [API Explorer](/api-explorer) as well.
3737

3838
For example, on the screenshot below, you can see that to be able to use the Account Status, a token with read access level must be used.
3939

@@ -86,7 +86,7 @@ const user_accounts = [
8686
];
8787
```
8888

89-
To authorise the user based on the user's **selected** account, call the [authorize](https://api.deriv.com/api-explorer#authorize) API call with the user's **selected** account **session token**:
89+
To authorise the user based on the user's **selected** account, call the [authorize](/api-explorer#authorize) API call with the user's **selected** account **session token**:
9090

9191
```js showLineNumbers
9292
{

0 commit comments

Comments
 (0)