黑猫的博客

Foreign exchange reserves Wikipedia

what is forex reserve

U.S. foreign reserves, including foreign currencies of the best way to learn about investing mostly euros and yen, were valued at $250 billion in September 2024. The United Kingdom, which also did not make the top 10 list, held $213 billion in foreign reserves as of June 2024. Here are the 10 countries with the largest foreign currency reserve assets.

By buying and selling currencies on the open market, a central bank can influence the value of its country’s currency, which can provide stability and maintain investor confidence. For instance, if the value of the Brazilian real starts to fall during an economic downturn, the Central Bank of Brazil can step in and use its foreign reserves to bid up its value. Conversely, countries can intervene to stop their currencies from appreciating and make their exports cheaper. The central bank assures foreign investors that it’s ready to take action to protect their investments. It will also prevent a sudden flight to safety and loss of capital for the country. In that way, a strong position in foreign currency reserves can prevent economic crises caused when an event triggers a flight to safety.

List of countries by foreign-exchange reserves

A reserve currency is a foreign currency that a central bank or treasury holds as part of its country’s formal foreign exchange reserves. Countries hold reserves for a number of reasons, including to weather economic shocks, pay for imports, service debts, and moderate the value of their own currencies. In a central bank’s accounts, foreign exchange reserves are called reserve assets in the capital account of mcdonald’s stock a buy dow jones giant gets rare rating from pickiest analyst the balance of payments, and may be labeled as reserve assets under assets by functional category. There is no counterpart for reserve assets in liabilities of the International Investment Position.

India’s foreign exchange reserves declined $17.76 billion last week

With a considerable war chest of foreign currencies, China has the ability to invest in foreign assets, diversify its holdings, and exert influence on global financial markets. The euro, introduced in 1999, is the second most commonly held reserve currency Jesse livermore blog in the world. According to the International Monetary Fund (IMF), which is charged with promoting global growth and trade, central banks hold more than $6.7 trillion in dollar reserves versus 2.2 trillion in euros as of Q4 2019. As of July 2023, China has by far the most reported foreign currency reserves of any country, with more than $3 trillion. India, Russia, Saudi Arabia, Switzerland, and Taiwan also have large reserve holdings.

The U.S. treasury market remains by far the world’s largest and most liquid—the easiest to buy into and sell out of—bond market. Countries like Germany and China—which have the largest trade surpluses—also have the most currency reserves because they receive U.S. dollars and other foreign currencies when they provide exports. Manipulating and adjusting the reserve levels can enable a central bank to prevent volatile fluctuations in currency by affecting the exchange rate and increasing the demand for and value of the country’s currency.

  1. Countries without reserve currency status fear that their fates are tied to macroeconomic and political decisions that are outside of their control.
  2. Central banks often hold currency in the form of government bonds, such as U.S. treasuries.
  3. Central banks throughout the world have sometimes cooperated in buying and selling official international reserves to attempt to influence exchange rates and avert financial crisis.
  4. Foreign exchange reserves are not only used to back liabilities but also influence monetary policy.

India’s forex reserves see sharpest weekly drop on record, hit over four-month low

Between 2004 to 2011, China averaged $363 billion in annual foreign exchange purchases. Analysts suspected that China ramped up its foreign exchange purchases to suppress the value of its currency and boost trade account surpluses. Some countries have a fixed exchange rate, i.e., their currency shadows another currency or a commodity. Treasury Secretary Janet Yellen, say that the aggressive use of sanctions could threaten the dollar’s hegemony.

what is forex reserve

Understanding Forex Reserves: What They Are and Why They Matter

It then used its reserves with the IMF to make a debt payment to the European Central Bank. The huge sovereign debt the Greek government incurred led to the Greek debt crisis. Sixth, some countries use their reserves to fund sectors, such as infrastructure. China, for instance, has used part of its forex reserves for recapitalizing some of its state-owned banks.

Top 10 Countries With the Biggest Forex Reserves

what is forex reserve

Non-sterilization will cause an expansion or contraction in the amount of domestic currency in circulation, and hence directly affect inflation and monetary policy. For example, to maintain the same exchange rate if there is increased demand, the central bank can issue more of the domestic currency and purchase foreign currency, which will increase the sum of foreign reserves. Since (if there is no sterilization) the domestic money supply is increasing (money is being ‘printed’), this may provoke domestic inflation.

  1. The outcome of the U.S. elections boosted the dollar and U.S. bond yields, leading to revaluation losses.
  2. She is a financial therapist and transformational coach, with a special interest in helping women learn how to invest.
  3. They wind up stockpiling dollars because they export more than they import.
  4. As the United States printed more money to finance its spending, the gold backing behind the dollars diminished.

Former Federal Reserve Chair Ben Bernanke has argued that the United States’ declining share of the global economy and the rise of other currencies such as the euro and yen have eroded the U.S. advantage. “The exorbitant privilege is not so exorbitant any more,” Bernanke wrote in 2016. The two most popular foreign assets are US dollar-denominated assets and euro-denominated assets. Similar to the US dollar, the euro offers its holders access to a large common market (the Eurozone area) that consists of well-developed legal and political institutions.

Meanwhile, the dollar’s outsize role in international trade could have negative consequences for the global economy. As a country’s currency weakens, its goods exports should become cheaper and thus more competitive. But because so much trade is conducted in U.S. dollars, other countries do not always see this benefit when their currencies depreciate. “Both the United States and the world at large would benefit from a less dominant U.S. dollar,” writes Michael Pettis, a professor of finance at Peking University. Most countries want to hold their reserves in a currency with large and open financial markets, since they want to be sure that they can access their reserves in a moment of need. Central banks often hold currency in the form of government bonds, such as U.S. treasuries.

what is forex reserve

Saudi Arabia also holds considerable foreign exchange reserves, as the country relies mainly on the export of its vast oil reserves. If oil prices begin to rapidly drop, the country’s economy could suffer. It keeps large amounts of foreign funds in reserves to act as a cushion should this happen. SBP Governor Jameel Ahmad and Aurangzeb both expect the foreign currency reserves to reach $13 billion by the end of current fiscal year on June 30, 2025.

Reserve accumulation was faster than that which would be explained by trade, since the ratio has increased to several months of imports. Furthermore, the ratio of reserves to foreign trade is closely watched by credit risk agencies in months of imports. However, foreign currency is the most abundant asset in most foreign reserves, and most nations hold the vast majority of their foreign currency reserves in U.S. dollars, followed by euros and the Japanese yen. The dollar’s centrality to the system of global payments also increases the power of U.S. financial sanctions.

Forex reserves rise $29m to $11.29b

In such a global economy, where countries ship commodities and goods at such a frenetic pace, the fear of markets seizing up due to monetary constraints is not likely to diminish in the coming years. The recent financial crisis has increased the pressure on the dollar, especially in light of public debt prospects and political brinksmanship. Countries without reserve currency status fear that their fates are tied to macroeconomic and political decisions that are outside of their control. The push for a world market dominated less by the dollar is nothing new, but just as investors seek to 6 best and most volatile forex currency pairs to trade in 2021 2020 hold a basket of investments rather than a solitary stock, so do central banks when it comes to managing their reserves.

Time-lines of Japanese reserves

Low borrowing costs stemming from issuing a reserve currency may prompt loose spending by both the public and private sectors, which may result in asset bubbles and ballooning government debt. Stimulus spending in the U.S., for example, led Chinese leaders to fear a weak dollar since that would erode the country’s value of dollar-denominated debt. These reserve requirements are established by the Fed’s Board of Governors. Reserves also keep the banks secure by reducing the risk that they will default by ensuring that they maintain a minimum amount of physical funds in their reserves. Periodically, the board of governors of a central bank meets and decides on the reserve requirements as a part of monetary policy. The amount that a bank is required to hold in reserve fluctuates depending on the state of the economy and what the governing board determines as the optimal level.

The euro, introduced in 1999, is the second most commonly held reserve currency. Others in the basket include the Japanese yen and the British pound sterling. The latest addition, introduced in October 2016, is China’s yuan or renminbi. Credit risk agencies and international organizations use ratios of reserves to other external sector variables to assess a country’s external vulnerability. Therefore, countries with similar characteristics accumulate reserves to avoid negative assessment by the financial market, especially when compared to members of a peer group.

Country-wise forex reserves

The economic upheaval caused by the pandemic and the war in Ukraine has renewed concerns about the downfall of the dollar as the leading reserve currency. Foreign exchange reserves are foreign-denominated assets held interactive brokers group vs tradestation by a central bank for the purpose of backing liabilities and influencing monetary policy. Foreign exchange reserves can include banknotes, deposits, bonds, treasury bills, and other government securities.

The U.S. dollar is the most commonly-held currency reserve, accounting for 58% of the $11.5 billion of the allocated reserves as of Q2 2024. The banks prefer to use the cash to top major us imports and exports with statistics buy sovereign debt because it pays a small interest rate. The most popular are Treasury bills because most foreign trade is done in the U.S. dollar due to its status as the world’s global currency. Even with de-dollarization, the U.S. dollar remains the world’s currency reserve. The status is due primarily to the fact that countries accumulated so much of it and that it was still the most stable and liquid form of exchange. Treasuries, the dollar is still the most redeemable currency for facilitating world commerce.

List of countries by foreign-exchange reserves

The run on gold was so extensive that President Nixon was compelled to step in and decouple the dollar from the gold standard, which gave way to the floating exchange rates that are in use today. Soon after, the value of gold tripled, and the dollar began its decades-long decline. The United States is also harmed by currency manipulation—when another country holds down the value of its currency to maintain a large trade surplus. If a country keeps the value of its currency artificially low by accumulating dollar reserves, its exports will become more competitive, while U.S. exports will become comparatively more expensive. China has historically been among the worst offenders, though most experts agree that it has not been heavily intervening to hold its currency down in recent years. The COVID-19 pandemic led to a resurgence in currency manipulation, with advanced economies such as Switzerland and Taiwan buying dollars, euros, and other reserve currencies to depreciate their own.

mysql之查询缓存QUERY_CACHE

查询缓存(QueryCache)保存查询返回的完整结果。当查询命中该缓存,MySQL会立即返回结果,跳过解析、优化和执行阶段。

官方在特定环境测试结果(官方文档中有详细说明):

1.如果对某表进行简单查询,但每次查询条件都不一样时,打开查询缓存会导致性能下降13%。

2.如对一个只有一行数据的表进行查询,则可以提升238%。

所以查询缓存特别适用于更新频率非常低、查询频率非常高的场景。

缓存命中规则

缓存存放在一个引用表中,通过一个哈希值引用,哈希值包含了(查询本身、当前查询的数据库、客户端协议的版本等)。

判断是否命中时,MySQL不会解析语句,而是直接使用SQL语句和客户端发送来的其他原始信息。任何字符上的不同都会导致缓存不命中。

如果查询语句中包含任何的不确定函数则不会缓存(如NOW()),因为在执行这个查询之后,MySQL会禁止缓存该查询,所以在查询缓存中是不可能找缓存的。

什查询缓存能发挥作用

并不是所有情况下查询缓存都能提高系统性能。打开查询缓存对读和写操作都会带来额外消耗:

  • 读查询在开始之前必须先检查是否命中缓存。
  • 如果这个读查询可以被缓存,那么当完成执行后,需要将结果存入缓存。
  • 每次写入操作时,需要将对应表的所有缓存都设置失效。如果缓存较大或碎片很多,则会带来很大消耗。

缓存命中率:

SHOW STATUS中能提供一个全局的性能指标用以计算缓存命中率:

每次SELECT查询,要么增加Qcache_hits(查询缓存命中次数),要么增加Com_select(无缓存的查询次数+错误查询+权限检查查询),所以命中率计算公式:Qcache_hits / (Qcache_hits + Com_select)。

缓存配置和维护

query_cache_type:是否打开查询缓存。可以设置为(OFF、ON、DEMAND)。DEMAND表示只有在查询语句中明确标记SQL_CACHE的语句才放入查询缓存。

query_cache_size:查询缓存使用总空间。

query_cache_min_res_unit:在查询缓存中分配内存块的最小单位。

query_cache_limit:MySQL能缓存的最大查询结果。

query_cache_wlock_invalidate:如果某个数据表被其他的连接锁住,是否仍然从查询缓存中返回结果。

 

 

指定MySQL查询缓冲区的大小。可以通过在MySQL控制台执行以下命令观察:

SHOW VARIABLES LIKE ‘%query_cache%’;
SHOW STATUS LIKE ‘Qcache%’;

 

Thinkphp5 的widget(小部件)功能使用

现在Widget叫分层控制器,不过我习惯叫它小部件,它是非常好用的一个东西。网页上很多地方是可以公用的,比如说导航栏、用户登录区域等,我们可以使用小部件功能减少重复代码。

官方文档连接:https://www.kancloud.cn/manual/thinkphp5_1/353983

thinkphp UEditor编辑器添加在线图片&&在线附件删除功能

通过ueditor来编辑文章,其中可以上传些图片附件,文章删除只能删除数据库中的图片路径,并不会把文件删除,久而久之就会有大量的垃圾文件。用以下方法给Ueditor编辑器添加附件删除功能。

php7的新特性

1. null合并运算符(??)

??语法: 如果变量存在且值不为NULL,它就会返回自身的值,否则返回它的第二个操作数.

//php7以前  if判断
if(empty($_GET['param'])) {
      $param = 1;
}else{
    $param = $_GET['param'];
}

//php7以前  三元运算符
$param = empty($_GET['param']) ? 1 : $_GET['param'];

//PHP7  null合并运算符
$param = $_GET['param'] ?? 1;//1

RSA公私钥的理解和示例说明与php中的使用

先放重点:公钥和私钥是成对的,它们互相解密。

公钥加密,私钥解密。

私钥数字签名,公钥验证。

PHP Trait特性

php类的单继承性,无法同时从两个基类中继承属性和方法,为了解决这个问题,使用Trait特性解决.

Trait是一种代码复用技术,为PHP的单继承限制提供了一套灵活的代码复用机制.

用法:通过在类中使用use 关键字,声明要组合的Trait名称,具体的Trait的声明使用Trait关键词.  注意:Trait不能实例化

mysql之 主从复制

概念:

MySQL 主从复制是指数据可以从一个MySQL数据库服务器主节点复制到一个或多个从节点。

MySQL之慢查询日志总结

我们程序员可以定义一个时间界限(如:3s),只要有sql语句的执行时间超过我们所规定的时间界限,就会被记录在日志文件里面,我们就可以在日志文件中找出这些有问题的sql语句,从而优化它。