Skip to Content
精通区块链
book

精通区块链

by Lorne Lantz, Daniel Cawrey
March 2022
Intermediate to advanced
293 pages
5h 31m
Chinese
China Electric Power Press Ltd.
Content preview from 精通区块链
162 6
6.5.1
计时和管理流动资金
为了执行套利策略,需要有流动资金,或者说准备交易的流动资金池。这种
流动资金存放在不同的交易所,在套利机会出现的那一刻就会被使用。
当套利机会到来时,必须尽快完成套利的所有步骤,主要原因有两个:
1.
交易所的定价可能会迅速变化。
2.
其他人可能会利用这个机会,推动价差下降。
一般来说,为套利预留的流动资金越多,执行速度越快。然而,让资金闲置
等待未来的潜在机会是有机会成本(和风险)的。确定达成目标的市场和套
利途径是很重要的,因为在任何时候,手头可用的资金或浮动资金总是有限的。
下文将探讨设置套利浮动资金的几种可能配置。
6.5.2
浮动资金配置
1
配置
1
预留
50000
美元在
Coinbase Pro
上,
5
BTC
Gemini
上。当这两
个市场之间出现套利机会时,这个配置可以即时执行。这是因为浮动资金意
味着套利者可以在
Coinbase Pro
上即时购买比特币,并在
Gemini
上即时卖出。
然而,套利执行的速度完全取决于交易所接收和完成交易
API
调用的情况。
执行套利后,所有交易所账户的余额都会发生变化。如果不断有套利机会朝
这个方向发展(比如
Coinbase Pro
上的买入价格较低,而
Gemini
上的卖出价
格较高),那么最终会出现浮动资金失衡,即一个交易所的资金比另一个交
易所的资金多。这种失衡意味着交易者将无法在
Coinbase Pro
上购买比特币,
或者在
Gemini
上卖出比特币。因此,必须做出一些决定,以继续使用浮动资
金进行套利。交易者可以采取以下措施: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
编写整洁的Python代码(第2版)

编写整洁的Python代码(第2版)

Posts & Telecom Press, Mariano Anaya

Publisher Resources

ISBN: 9787519863166