如何在我的Windows应用程序中获取今天的黄金价格 [英] How to fetch Today's Gold rates in my windows application

查看:105
本文介绍了如何在我的Windows应用程序中获取今天的黄金价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,

我为珠宝店创建了一个桌面应用程序,客户需要在应用程序中显示最新的黄金和白银价格(印度)。我该怎么做?可以吗?



任何帮助都表示赞赏。







Javed

Hello Friends,
I have created one Desktop application for Jewellery Shop in which client requires latest Gold and silver rates(in India) to be shown in the Application. how do i do it? Is it possible?

Any help is appreciated.



Javed

推荐答案

查找提供此信息的服务(如果您需要最新信息,可能需要付费,通常有免费服务可用于稍微延迟的数据),然后写入其API。这可能包含获取特定符号数据的服务方法。



您可以使用Web服务进行轮询,也可以找到允许的数据提供者您订阅更新并通过TCP将更新推送给您。



如果您有客户,那么您可能是某种顾问,因此应该有能力分析可用选项并选择最能满足客户需求的选项。我对印度市场数据提供商一无所知,希望你能找到它。
Find a service which provides this information (if you want the latest information you might have to pay, there is usually free service available for slightly delayed data), and then write against its API. That will probably contain a service method to get the data for a particular symbol.

You can either use a web service and poll, or find a data provider which will allow you to subscribe to updates and push the updates to you through TCP.

If you have a 'client' then presumably you are some sort of consultant and therefore should be capable of analysing the available options and selecting one that best fulfils the client's need. I don't know anything about Indian market data providers and that's something that hopefully you can find.


我觉得Google提供了最佳解决方案。尝试搜索Google财经API



C sharp Lib的Google代码链接 http://code.google.com/apis/gdata/client-cs.html [ ^ ]
I feel like Google providing best solution. Try searching Google Finance API

Google code link for C sharp Lib http://code.google.com/apis/gdata/client-cs.html[^]


理想解决方案:查找服务给你订阅费率变化的可能性并推送给你。



快速解决方案(也脏):也许你必须已经在一些网站上观看费率。您还必须依赖本网站的费率。所以最简单的方法仍然是从win-form继续使用同一个网站。有一个win-form的网络浏览器,并调整为固定间隔后自动刷新页面,比如说5分钟。如果您想要更小的UI,请调整此浏览器以显示部分页面。
Ideal solution: Find a service that gives u the possibility of subscribing to change in rates and push them to you.

Quick solution(Dirty too): Perhaps you must already be watching the rates on some website. You must also be relying n this website for rates. so the easiest way to still keep using the same website from a win-form. have web-browser in a win-form and tune to auto refresh the page after a fixed interval, say 5 minutes. tweak this browser to show you partial pages if you want smaller UI.


这篇关于如何在我的Windows应用程序中获取今天的黄金价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆