Skip to content

Commit

Permalink
updated fetch URL
Browse files Browse the repository at this point in the history
  • Loading branch information
suyeshs committed Sep 26, 2023
1 parent 309297d commit e1b021b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/pages/nse-options/syncoptions.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,12 @@ align-content: center;

.custom-dropdown:hover #expiryDateDropdownList {
display: block;
}


@media screen and (max-width: 768px) {
.vertical-text {
transform: rotate(90deg);
white-space: nowrap;
}
}
4 changes: 2 additions & 2 deletions src/stores/NseFetchStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class NseFetchStore {
this.isLoading = true;

try {
const response = await axios.get(`http://127.0.0.1:8000/api/option-chain-copy/?symbol=${encodeURIComponent(this.symbol)}&expiry_date=${encodeURIComponent(firstExpiryDate)}`);
const response = await axios.get(`https://tradepodapisrv.azurewebsites.net/api/option-chain-copy/?symbol=${encodeURIComponent(this.symbol)}&expiry_date=${encodeURIComponent(firstExpiryDate)}`);
const data = response.data as NseApiResponse;

if (data && data.nse_options_data) {
Expand Down Expand Up @@ -171,7 +171,7 @@ export class NseFetchStore {
this.isLoading = true;

try {
const response = await axios.get(`http://127.0.0.1:8000/api/option-chain-combined/?symbol=${encodeURIComponent(userSelectedStock)}&expiry_date1=${encodeURIComponent(expiryDates[0])}&expiry_date2=${encodeURIComponent(expiryDates[1])}`);
const response = await axios.get(`https://tradepodapisrv.azurewebsites.net/api/option-chain-combined/?symbol=${encodeURIComponent(userSelectedStock)}&expiry_date1=${encodeURIComponent(expiryDates[0])}&expiry_date2=${encodeURIComponent(expiryDates[1])}`);
const data = response.data as NseApiResponse;

if (data && data.nse_options_data) {
Expand Down

2 comments on commit e1b021b

@vercel
Copy link

@vercel vercel bot commented on e1b021b Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tradepodapp – ./

tradepodapp.vercel.app
tradepodapp-suyeshs.vercel.app
tradepodapp-git-master-suyeshs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on e1b021b Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tradepod – ./

tradepod-git-master-suyeshs.vercel.app
tradepod-suyeshs.vercel.app
tradepod.vercel.app

Please sign in to comment.