{"id":31650997,"url":"https://github.com/tradevpsnet/client-ts","last_synced_at":"2026-01-20T16:47:24.486Z","repository":{"id":290002473,"uuid":"971251047","full_name":"tradevpsnet/client-ts","owner":"tradevpsnet","description":"The official TypeScript client for TradeVPS APIs, services, and marketplace. ","archived":false,"fork":false,"pushed_at":"2025-07-09T06:28:43.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T23:27:12.380Z","etag":null,"topics":["client","client-ts","tradevps","ts","tv","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tradevpsnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-23T08:34:55.000Z","updated_at":"2025-06-28T09:51:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"36071d02-4bbb-4bd9-832f-326e0e0d1342","html_url":"https://github.com/tradevpsnet/client-ts","commit_stats":null,"previous_names":["tradevpsnet/client-ts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tradevpsnet/client-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradevpsnet%2Fclient-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradevpsnet%2Fclient-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradevpsnet%2Fclient-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradevpsnet%2Fclient-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradevpsnet","download_url":"https://codeload.github.com/tradevpsnet/client-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradevpsnet%2Fclient-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278746521,"owners_count":26038704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","client-ts","tradevps","ts","tv","typescript"],"created_at":"2025-10-07T08:44:07.860Z","updated_at":"2025-10-07T08:44:08.726Z","avatar_url":"https://github.com/tradevpsnet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Client-ts\nSet of APIs from (TradeVPS), you would typically be interacting with various trading platforms, market data sources, and order execution systems. Below are some core API functionalities that you can expand for use in a trading VPS system:\n\n### 🛠️ Setup\n\n\n#### Install\nInstall via npm:\n```bash\nnpm i @tradevpsnet/client\n```\n#### Example usage\n```js\nimport { Client } from '@tradevpsnet/client';\n\nconst client = new Client();\n\ntry {\n    const loginResponse = await client.auth.login({ email: \"user@example.com\", password: \"password123\" });\n    console.log('Login successful:', loginResponse);\n} catch (error) {\n      console.error('Login failed:', error);\n}\n````\n### ✅ Currently Supported Methods\n#### 🔐 Authentication\n```js\nclient.auth.login(params)\n\nclient.auth.register(params)\n\nclient.auth.logout()\n\nclient.auth.forget_password(params)\n\nclient.auth.reset_password(params)\n````\n#### 🧠 AI Analysis\n```js\nclient.ai.news.dailyAnalysis(params)\nclient.ai.news.weeklyAnalysis(params)\n```\n####  Windows Server\n```js\nclient.windows.servers_list(query)\nclient.windows.server_deploy(payload)\nclient.windows.server_action(id, params)\nclient.windows.regions()\nclient.windows.server_detail(id)\nclient.widnows.server_delete(id)\n```\n####  Projects\n```js\nclient.projects.projects_list(query)\nclient.projects.project_deploy(payload)\n```\n### Calender\nRead the [document](https://docs.tradevps.net/apis/marketplace/calendar) for more detail\n```js\nconst query = {\n        date_from: '2025-05-10',\n        date_to: '2025-05-15',\n        importance: '3',\n        country: 'IR',\n        per_page: 15,\n        sort_by: 'time',\n        sort_direction: 'asc',\n      };\nclient.marketplace.calender(query);\n```\nYou can also use our pre-made component for showing calender data\n```js\n'use client';\nimport {Client} from '@tradevpsnet/client';\nimport {EconomicCalendar} from '@tradevpsnet/client';\nimport React, {useMemo} from 'react';\n\nconst EconomicCalendarPage: React.FC = () =\u003e {\n  const client = useMemo(() =\u003e new Client(), []);\n\n  return (\n    \u003cdiv className='w-full h-screen overflow-hidden'\u003e\n      \u003cEconomicCalendar client={client} width='100%' height='100%' /\u003e\n    \u003c/div\u003e\n  );\n};\nexport default EconomicCalendarPage;\n\n```\n### 📄 Types\n\nTo ensure type safety when using the client library, you can import request and response types directly:\n```js\nimport {\n  ILoginParams,\n  ILoginResponse,\n  IRegisterParams,\n  IRegisterResponse,\n  IForgetPasswordParams,\n  IForgetPasswordResponse,\n  IResetPasswordParams,\n  IResetPasswordResponse,\n  ILogoutResponse,\n  IResponse,\n  IDailyNewsParams, \n  IDailyNewsResponse,\n  IWeeklyNewsParams, \n  IWeeklyNewsResponse,\n  IRegionsResponse,\n  IRegionsParams,\n  IRegion,\n  IServerActionParams,\n  IServerActionResponse,\n  IServerDeployParams,\n  IServerDeployResponse,\n  IServerDetailResponse,\n  IServerListQueryParams,\n  IListServersResponse,\n  IProjectCreateParams,\n  IProjectCreateResponse,\n  IProjectListQueryParams,\n  IListProjectsResponse,\n  ICalendarQueryParams,\n  ICalendarEvent,\n  ICalendarResponse\n} from '@tradevpsnet/client';\n```\nThese types cover the implementation flows and ensure you're developing with full TypeScript support.\n### ⚠️ Flags\nThis library depends on [@tradevpsnet/flags](https://www.npmjs.com/package/@tradevpsnet/flags)\n ```js\n import { Client } from '@tradevpsnet/client';\n\nconst client = new Client();\n const [GbpFlag] = client.flags.get('gbp');\n return(\n  \u003cdiv\u003e\n    {GbpFlag ? \u003cGbpFlag width={20} height={20} /\u003e : 'No flag found'}`.\n \u003c/div\u003e\n );\n```\n### ⚠️ Error Handling\n\nAll errors returned from the client system are instances of APIError, a custom error class for handling TradeVPS-specific failures.\n```js\nimport { APIError } from '@tradevpsnet/client';\n\ntry {\n  await client.auth.login(params);\n} catch (error) {\n  if (error: APIError) {\n    console.error('Handled TradeVPS API error:', error.message, error.statusCode);\n  } else {\n    console.error('Unknown error:', error);\n  }\n}\n```\n### Documentation\nThe Client documentation is available at [tradevps.net.](https://docs.tradevps.net/)\n\n### Security\ninfo@tradevps.net\n### License\nClient is distributed Apache-2.0, see [LICENSING.md](https://github.com/tradevpsnet/client-ts/blob/main/LICENSE).\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradevpsnet%2Fclient-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradevpsnet%2Fclient-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradevpsnet%2Fclient-ts/lists"}