Connect with us


Algo Short Trading Crypto using CoinMetro



A journey to find a way to programmatically short crypto from the US, you’d think this would be simple… think again!

Exchanges are everywhere… Coinbase, Binance, Gemini, Robinhood, Kraken, eToro,, TradeStation, Coinmama, …

and those with an API… Binance, Bittrex, Poloniex, Coinbase, Kraken, BitFinex, Bitstamp, Hitbtc, BitForex, …

and even fewer offer Short trading from a 🇺🇸 IP address. So are there exchanges that offer short trading via API for US customers? does not offer short trading to US based customers.

It is confusing and in flux!

Earlier this year I went searching for an answer.

My criteria was quite simple:

  • must be legit for US users, no VPN hacking to pretend to live elsewhere

Why? Because my crypto-quant rig wants to short as part of its strategy and it cannot do that on, at least not as of this writing.

Many of the exchanges above do not tell you clearly whether or not they serve US customers until you try to register. That is a real pain!

Others do allow US IP addresses but don’t offer short positions, and again not easy to tell and as of the date of this piece it’s a moving target.

Some of these exchanges have horrendous fees, eToro (best to avoid this) charges a ‘no usage’ fee for an account that hasn’t been logged into over some period of time. ⏰ 💵 What?

Other exchanges like BitForex (avoid this one also) have a ‘chat room’ for support where thousands of users are ‘voicing their opinion’. After multiple days of trying to understand how to short via API and getting crazy responses I gave up. 🐒 What?

The reality is that most exchanges today are not geared for developers and quant types, why should they be? That’s not the fat part of the market.

Finally after quite a bit of work I found CoinMetro… based in Tallinn Estonia.

Here’s a primer on this exchange and their rate sheet. Sign up is straight-forward, US users have to authenticate and provide verified ID.

Get discounts, positive vibes and good karma by using my referral code to signup:

Be patient as the ID verification is done by their support teams. Crypto can be transferred into your account once verified.

CoinMetro signup here.

Once you are registered you can go to their ‘Exchange’ dashboard and to their ‘Margin’ dashboard…

It’s not intuitive but you can SCROLL DOWN to see the margin collateral section of the dashboard:

Above is an example of ~US$500 applied to margin collateral. Use the slider to set the amount from your wallet. You can easy retrieve this margin collateral (again with the slider) after getting out of margin positions.

The fees for margin trades are significant, 0.20% of the trade value for a short and buy round-trip… Compare this to 0.15% round-trip for Long position on (using BNB for fees).

Note the (0.20%) shown in the margin dashboard is for round-trip position, for the total of the open and close of the margin position.

In addition there are margin ‘borrowing fees’…

Interest 0.08222% daily — calculated every 4 hours on borrowed margin

Let’s work this out in a scenario, let’s imagine you take a margin position for USD 100, hold it for 48hours and then close it, the fees would be:

  • commission: 100*0.2% … $0.20

Total fees for this trade: $0.57 (0.37%)

Another scenario, let’s imagine you take a margin position for EUR 10000, hold it for 10days and then close it, the fees would be:

  • commission: 10000*0.2% … EUR 20,00

Total fees for this trade: EUR 102,00 (1.02%)

Watch and account for commissions carefully, as usual.

The commission is taken from the trade, a market buy order of that amount in XCM (the utility token for fees at CoinMetro), creating more volume and demand for the token.

Commission fees are seen in the “Order History” display under “Fees”:

You can also collect ‘rebates’ on fees by holding the CoinMetro coin: XCM

The folks in the Telegram chat group tell me that the ‘trading floor’ of XCM is set to USD 15cents, ie. it cannot be traded for less than that. As of this article its price is 22cents so that is interesting.

Here’s the link to CoinMetro’s API in Postman:

You can experiment with the Postman REST API interface. Then select a language in the upper drop-down list to see example code in that style.

Found a Python wrapper for the CoinMetro REST api here:

Just copy into your working directory and import it, simple. No need to install anything, this is just a thin wrapper. The Authentication wrapper is included and helpful.

Let’s start with some basic imports:

import CMapi
from datetime import datetime, timedelta
import json
import requests

And a client initialization function with your credentials:

client = CMapi.CMClient(email='', passwd='YOURPASSWORD', hashkey='Yes')

Now we can get trading assets:

client.get_trading_assets()[{'name': 'Bitcoin',
'symbol': 'BTC',
'type': 'coin',
'canDeposit': True,
'canWithdraw': True,
'canTrade': True,
'sentimentData': {'sentiment': 32.276666666666664,
'interest': 0.8021655707519841},
'digits': 6,
'minQty': 0.00025,
'maxSwap': 2500,
'canMarket': True,
'id': None},


Your account balances:

balances = client.get_balances(){'ETH': {'ETH': 0, 'EUR': -0.07, 'BTC': -2e-06, 'USD': -0.09},
'USD': {'USD': 494.66, 'EUR': 419.33, 'BTC': 0.01066, 'ETH': 0.1537},
'XCM': {'XCM': 0, 'EUR': 0, 'BTC': 0, 'USD': 0, 'ETH': 0},
'TOTAL': {'EUR': 419.33, 'BTC': 0.01066, 'USD': 494.66, 'ETH': 0.1537},
'REF': {'XCM': 0, 'EUR': 0, 'BTC': 5e-06, 'USD': 0, 'ETH': 0}}

Get historical data:

now = — timedelta(minutes= 3)candles = client.get_historical_prices(pair=’ETHUSD’, timeframe=60000, From=now.strftime(‘%s’)+’000')for c in candles[‘candleHistory’]:
print(datetime.fromtimestamp(c[‘timestamp’]/1000.0), c[‘o’], c[‘c’])
2021-08-15 16:44:00 3249.6723259755 3249.6723259755
2021-08-15 16:45:00 3249.6723259755 3249.6723259755
2021-08-15 16:46:00 3249.6723259755 3249.4520935
2021-08-15 16:47:00 3249.6723259755 3247.57055175

And more, see for details.

The REST API has margin trading endpoints but unfortunately the Python wrapper did not (at the time of this piece), so we resort to making REST requests.

Create Order

Here’s an example of a SHORT Market order via REST API:

BASE = ""# sell SHORT on margin
headers={"Authorization":client.bearerToken, 'Content-Type': 'application/x-www-form-urlencoded'}
payload = f'orderType=market&buyingCurrency=USD&sellingCurrency=ETH&sellingQty=0.0315&margin=true'response = requests.request("POST", f'{BASE}/exchange/orders/create', headers=headers, data = payload)
responseJson = json.loads(response._content)

Replace the currency and Qty with your variables.

You can also package the parameters in JSON structure.

Note the margin=true parameter, also you must allocate margin collateral (in the dashboard) prior to trying to trade on margin using the API.

The response payload is something like:

{'userID': '60e8fc89116db05a7fdb857b', 'orderID': '60e8fc89116db05a7fdb857b1629051520858cb64815e410cbbac', 'orderType': 'market', 'buyingCurrency': 'USD', 'sellingCurrency': 'ETH', 'sellingQty': 0.0315, 'margin': 'true', 'timeInForce': 4, 'boughtQty': 99.824, 'soldQty': 0.0315, 'creationTime': 1629051520860, 'seqNumber': 5018778582, 'firstFillTime': 1629051520860, 'lastFillTime': 1629051520860, 'fills': [{'seqNumber': 5018778581, 'timestamp': 1629051520860, 'qty': 0.0315, 'price': 3169.015873015873, 'side': 'sell'}], 'completionTime': 1629051520860, 'takerQty': 99.824}

Note the ‘takerQty’, this is the USD amount of margin collateral in USD this transaction took.

Get Orders

You can get a list of filled orders since some period of time:

now = — timedelta(hours=5)
nowInt = int(now.strftime(‘%s’)+’000')
fills = client.get_order_fills(since=nowInt)[{'pair': 'ETHUSD',
'seqNumber': 5018778581,
'timestamp': 1629051520860,
'qty': 0.0315,
'price': 3169.015873015873,
'side': 'sell',
'orderID': '60e8fc89116db05a7fdb857b1629051520858cb64815e410cbbac'},
{'pair': 'ETHUSD',
'seqNumber': 5018888387,
'timestamp': 1629051959955,
'qty': 0.031454,
'price': 3173.6504101227188,
'side': 'buy',
'orderID': '60e8fc89116db05a7fdb857b16290519599523046b30d3585a5d7'}]

Notice the ‘qty’ and ‘price’ elements. You can use qty * price to get the amount of currency and Buy a position, as follows:

BASE = ""qty = short[‘price’]*short[‘qty’]# buy (close short position)
headers={“Authorization”:client.bearerToken, ‘Content-Type’: ‘application/x-www-form-urlencoded’}

payload = f’orderType=market&buyingCurrency=ETH&sellingCurrency=USD&sellingQty=’+qty+’&margin=true’

response = requests.request(“POST”, f’{BASE}/exchange/orders/create’, headers=headers, data = payload)
responseJson = json.loads(response._content)

{'userID': '60e8fc89116db05a7fdb857b',
'orderID': '60e8fc89116db05a7fdb857b162911944571101e1277f9d9f8be1',
'orderType': 'market',
'buyingCurrency': 'ETH',
'sellingCurrency': 'USD',
'sellingQty': 99.943,
'margin': 'true',
'timeInForce': 4,
'boughtQty': 0.030455,
'soldQty': 99.943,
'creationTime': 1629119445720,
'seqNumber': 5036606277,
'firstFillTime': 1629119445721,
'lastFillTime': 1629119445721,
'fills': [{'seqNumber': 5036606276,
'timestamp': 1629119445721,
'qty': 0.030455,
'price': 3281.6614677392877,
'side': 'buy'}],
'completionTime': 1629119445721,
'takerQty': 0.030455}

And finally to Close an existing (filled) position we first need its orderID:

now = — timedelta(days=1)
nowInt = int(now.strftime(‘%s’)+’000')
fills = client.get_order_fills(since=nowInt)

Close position

Let’s close the most recent (filled) order:

# close position# get the most recent filled order
s = fills[-1]
headers={“Authorization”:client.bearerToken, ‘Content-Type’: ‘application/x-www-form-urlencoded’}
payload = {}
response = requests.request(“POST”, f’{COINMETRO}/exchange/orders/close/’+s[‘orderID’], headers=headers, data = payload)responseJson = json.loads(response._content)orderID 60e8fc89116db05a7fdb857b1629139458123bbb67a60d23c7838 open qty 0.0311
{'userID': '60e8fc89116db05a7fdb857b', 'orderID': '60e8fc89116db05a7fdb857b1629139458123bbb67a60d23c7838_CL', 'orderType': 'market', 'buyingCurrency': 'ETH', 'sellingCurrency': 'USD', 'margin': 'true', 'buyingQty': 0.0311, 'timeInForce': 4, 'boughtQty': 0.0311, 'soldQty': 100.204, 'creationTime': 1629139525626, 'seqNumber': 5042414933, 'firstFillTime': 1629139525627, 'lastFillTime': 1629139525627, 'fills': [{'seqNumber': 5042414932, 'timestamp': 1629139525627, 'qty': 0.0311, 'price': 3221.993569131833, 'side': 'buy'}], 'completionTime': 1629139525627, 'takerQty': 0.0311}

You will see all of this activity reflected in your CoinMetro dashboard.

PlatoAi. Web3 Reimagined. Data Inteligence Amplifed.
Click here for Free Trial.



Shiba Inu (SHIB) Rises to Range High




Shiba Inu (SHIB) yesterday reached the range high where it has been trading since May 2021. If the token breaks out of that area, it could begin a parabolic rise.


SHIB currently ranks as the 47th largest cryptocurrency by market capitalization, according to Coingecko. The main “dog competitor” and also the younger brother of Dogecoin (DOGE) broke out of the descending triangle pattern and validated the falling resistance line as support.

SHIB reaches the range high

Since the May 2021 declines, SHIB has been in a range between resistance in the $0.00000950 area (red rectangle) and support at $0.00000550 (green rectangle). Over a period of almost 4 months, the altcoin has repeatedly reached and bounced off these two areas.


On 16 September, SHIB rose 26% to reach the resistance area again a day later. At the press release, this area rejected the price and left a long upper wick.

However, if the daily candle closes above $0.00000904, a higher high will be printed on the daily chart. Combined with the higher low (blue arrows) of 7 September, this could signal a reversal and the start of an upward impulse.

Chart by Tradingview

The possibility of breaking through the top of the range and continuing the uptrend is also confirmed by the growing volume signature. During the last two days, it reached the highest values since mid-June (red arrow).

Technical indicators confirm the possibility of the continuation of the uptrend. RSI has broken above the 50 line and is rising. MACD generated two positive momentum bars and the signal line is close to entering positive territory. The stochastic oscillator is heading upwards and is close to entering bullish territory above 80.

Chart by Tradingview

Descending triangle

The daily chart also shows the breakout from the descending triangle that occurred on 7 September (orange arrow). On that day, SHIB rose 24% and began a multi-day consolidation. It then rose to the top of the range at $0.00000950 and started a downtrend.

The downward movement validated the descending triangle line twice as support (orange circles) and brought the price to the bottom around the range support area. Since then, SHIB has risen 40% and continues its upward movement.

Chart by Tradingview

The movement target for this pattern as measured by the height of the descending triangle is the $0.00001100 level. This resistance coincides with the 1.414 Fib external retracement level measured for the last downward movement. If SHIB reaches this peak, it will confirm the breakout from the range described in the previous section.

SHIB future movement

The short-term 4-hour chart shows a breakout from the descending resistance line that has been respected since August 17. The line was tested several times until it was decisively broken through with high volume on 16 September.

At the same time, the SHIB price also broke through the short-term support/resistance area near $0.00000760 (green rectangle). It coincides with the 0.382 Fib retracement level. It is expected that in the short term it will serve as support and the price will validate the area before continuing the upward movement.

Chart by Tradingview

For BeInCrypto’s latest Bitcoin (BTC) analysis, click here.

What do you think about this subject? Write to us and tell us!


All the information contained on our website is published in good faith and for general information purposes only. Any action the reader takes upon the information found on our website is strictly at their own risk.

Share Article

PhD and an assistant professor at an international university in Lublin, Poland. Spent 10 years studying philosophy of nature and sport science. An author of 4 books and two dozens of scientific articles. Now, he is using his mind for the benefits of the cryptocommunity. Technical analysis enthusiast, Bitcoin warrior, and a strong supporter of the idea of decentralization. Duc in altum!

Follow Author

PlatoAi. Web3 Reimagined. Data Inteligence Amplifed.
Click here for Free Trial.


Continue Reading


AMD Not Prioritize Mining Cards Over Gaming GPUs, Says CFO




AMD, along with other chip manufacturers, has struggled to keep up with the high demand for GPUs due to crypto mining. 


The past year has been hard on those looking to buy gaming graphic processing units (GPUs). The same high-powered units that are used in HD gaming applications also happen to be the GPU of choice for cryptocurrency miners worldwide. As the mining of cryptos such as Bitcoin becomes more and more difficult, more and more processing power is required to achieve the same goal.

Due to this, there has been a rush on GPUs in the last year with AMD, Nvidia, and other manufacturers struggling to keep pace. AMD has come under heavy pressure because of how poor its ability to meet the growing demand has been. Some even accused the company of prioritizing mining cards over gaming chips. The pandemic was another root cause of this shortage as the world’s population demanded more home electronics and entertainment devices across the board. 


During the recent Deutsche Bank Technology Conference, CFO of AMD Devinder Kumar said that AMD was not prioritizing GPU cryptocurrency miners when asked directly about it. Kumar’s response was “crypto, negligible. That’s not a priority for us. We do not prioritize our products or make them for the crypto folks is not for the gamers, and that’s a high priority from that standpoint. What’s driven the growth, as you know, we had the Radeon 6000 Series high-end GPUs introduced very competitive and that is driving the growth in the GPU space.” 

Crypto-specific cards might be the answer

Nvidia has suffered through the same issue as its competition and is tackling it in a rather reasonable way. The company began to produce and market GPUs that were specifically designed for cryptocurrency miners. Nvidia creating a distinct separation between the two should help alleviate the rush on gaming GPUs that users are scrambling to purchase. 

The crypto-mining processors (CMPs) that are now being sold aren’t as sophisticated as their gaming counterparts because they don’t need to be. Because they can’t be used for conventional graphics-related tasks, they will not flood the GPU secondary market. CMP cards can’t be used for graphics-related tasks are therefore won’t flood the secondary market with GPUs.

Another step that Nvidia has taken to combat this issue is to nerf its currency line of GPUs to make them less suited to the task of mining cryptocurrencies. Due to this, they are only effective as gaming cards.

What do you think about this subject? Write to us and tell us!


All the information contained on our website is published in good faith and for general information purposes only. Any action the reader takes upon the information found on our website is strictly at their own risk.

Share Article

Matthew De Saro is a journalist and media personality specializing in sports, gambling, and statistics. Before joining BeInCrypto, his work was featured on Fansided, Forbes, and OutKick. With a background in statistical analysis and a love of writing, he takes an outside-the-box approach to reporting news.

Follow Author

PlatoAi. Web3 Reimagined. Data Inteligence Amplifed.
Click here for Free Trial.


Continue Reading


Tomi Heroes NFT Sales Surpasses $1.35M




NFT and DeFi enthusiasts worldwide may be wondering why Tomi Heroes have been popping off on OpenSea in recent days.


These non-fungible tokens grant access to Tomi’s token presale soon, so the limited-edition sets are in high demand. With 395 Ether roughly $1.37 million in traded volume, it is evident that this is the project to keep an eye on over the coming days. 

Massive TOMI Presale ROI Potential

As Tomi Heroes generate more proceeds, the team will use these funds to purchase and burn TOMI token during the TOMI sale on SushiSwap.


It is a no-brainer for any TOMI presale participant, as, given the contribution by the TOMI team from the NFT sale, the return on investment potential is borderline astronomical.

As more FOMO kicks in among investors who seek exposure to the TOMI presale rounds, the remaining NFTs will generate even more attention and return for the presale.

It is essential to see this project for what it embodies. It is not just an NFT collectible, although these items will likely remain very popular on the secondary market after the token sale concludes.

Instead, it is a tool to facilitate token presale participation and incentivize holding the NFT rather than flipping it for a quick profit like so many other projects. 

Moreover, using the proceeds to make the TOMI token even more scarce is a gamechanger in the crypto industry.

Since the project focuses on giving back to the stakeholders with no profits for the developers, other NFT projects can learn a thing or two from how Tomi approaches this novel technology.

Perhaps this will set a precedent for ethical and inventive demand-driven tokenomics.

Investing in Tomi Heroes is a smart idea if you are interested in partaking in the TOMI presale rounds. It is essential to gain access to one of these five presale rounds, as they are available for only 30 minutes each.

The current rate of ETH trading volume is sufficient to make investors 10x on their TOMI investment even if no one else would participate in the token sale and it remains at a $75,000 market cap. 

The TOMI launch will happen on the Polygon network via the SushiSwap platform to avoid transaction delays and high gas fees. The token presale rounds will take place on September 21, 2021, with each of the five presale rounds lasting 30 minutes. .

A dive into the Tomi technology

To grasp the potential of TOMI, it is essential to look at what the ecosystem will provide to its users. Powering scalable projects through blockchain technology and introducing DEX swapping are two of its core solutions.

The focus on decentralized finance can change the lives of millions of people by democratizing access to alternative financial services and products.

Aligning this vision with PancakeSwap’s success and long-term plan can create a sustainable and attractive outlook for cryptocurrency and blockchain over the coming years. 

TOMISwap will serve as the next-generation decentralized trading platform built by the Tomi team. It will run on the Ethereum blockchain and facilitate the swapping of multiple tokens without forcing users to spend an arm and a leg on transaction fees.

Offering sustainable, efficient, cheap, and fast solutions for transactions at a high throughput helps conserve energy and offers scalability that will benefit all participants. 

The transaction fee per swap is capped at 0.3% of the amount, thanks to the use of decentralized liquidity providers. Of those fees:

  • Liquidity providers will earn 66.6% of transaction fees from TOMISwap and the Sushiswap smart contract’s activity, 
  • Governance token stakers will receive 16.6% of the transaction fee.
  • TOMISwap user giveaways will be allocated 8.3% of the transaction fee.
  • The remaining 8.3% goes to TOMIFundMe. 

Through TOMIFundMe, every person on the planet can set up a profile to share project ideas and business plans.

Rather than stopping there, TOMIFundMe will help business ideas grow and evolve if they can change the world for the better.

All TOMI holders can vote on projects to receive a grant. Those grants are paid out using the 8.3% of all TOMISwap fees collected for this purpose.

It is a front-row seat to future development in the decentralized industry, unlike anything that has been seen before. 

The team’s strong focus on wealth distribution and making a positive societal impact brink value to the TOMI token and those who hold it in their portfolio. However, there are multiple benefits to holding that token.

TOMI utility In a nutshell

The TOMI token serves multiple purposes in the Tomi ecosystem, as it is the native currency.

Ranging from community governance to liquidity provision and cheap transactions, there are multiple reasons to like the concept of TOMI.

Governance token stakers receive passive income from TOMISWAP and can vote on the new era of blockchain development.

Traders can benefit from cheap transaction fees and liquidity rewards through swapping DEX. 

With an initial supply of 1.5 billion – capturing the initial needs of the project – the team opts for using half of the coins to provide liquidity through Sushiswap.

Another 250 million tokens will fund the development of the project and require TOMI governance token holder approval before spending.

The remaining 500 million – to be unlocked over three years – is used for the Community pool. There are no free tokens for the founders or anyone else to ensure a fair distribution and release. 

After the TOMI sale concludes, the team will launch TomiSwap and TOMI staking in October 2021. TomIFundMe will be released in Q1 2022, somewhere near February.

The Tomi blockchain – marking the migration away from Ethereum – goes live in Q3 2022 and will support ERC-20 tokens. 

Closing thoughts

The ongoing interest in the Tomi NFTs confirms investors are on board with the team’s vision of creating wealth for everyone through fairness and transparency.

Moreover, the team’s choice to use all proceeds to buy back TOMI tokens and reduce the supply from day one – without any developer receiving a free allocation of tokens – confirms their commitment to a long-term business plan capable of changing DeFi for good. 

A confident team with a solid business plan and a forward-thinking approach can make many ideas become reality. As cryptocurrency becomes a more mainstream concept, now is the time to build wealth and share it with everyone else. All aspects of Tomi fulfill that outlook and provide value and incentive for TOMI holders.


All the information contained on our website is published in good faith and for general information purposes only. Any action the reader takes upon the information found on our website is strictly at their own risk.

Share Article

The opinion of BeInCrypto staff in a single voice.

Follow Author

PlatoAi. Web3 Reimagined. Data Inteligence Amplifed.
Click here for Free Trial.


Continue Reading
Uncategorized5 days ago

All Ironworks Hand vendor locations in Final Fantasy XIV from A Nocturne For Heroes event

Uncategorized2 days ago

Swissquote Confirms European Expansion Plan, Focusing on Crypto

Blockchain3 days ago Introduces OpenPunks, A Community-Based NFT Collection

Uncategorized3 days ago

Wicked Craniums are now Nifty Gateway!

Uncategorized5 days ago

APENFT and Tpunks Enter a Strategic Partnership With the Launch of the NFT Avatar Sale Event on the Binance NFT Platform

Uncategorized4 days ago

Natus Vincere wins ESL Pro League Season 14

Uncategorized3 days ago

Head of Australian Crypto Exchange Says Regulations Are Beneficial

Blockchain2 days ago

Massive NFT and Token Giveaway from Polker as Staking is Announced!

News1 day ago

Gods Unchained and Guild of Guardians Layer 2 Solution Immutable Raises $60 Million

Blockchain3 days ago

Biggest Crypto Adoption Rumours: Apple, Amazon, and Walmart

Uncategorized3 days ago

Investor: Coinbase’s $2 billion junk bond deal shows crypto ‘supercycle’ is in place

Uncategorized3 days ago

Acorns Hires Former Amazon Executive as President, Hints at Crypto Options

Uncategorized2 days ago

Nickelodeon All-Star Brawl will include DLC fighters post-launch

Blockchain5 days ago

Ethereum DeFi Project Development Blasting Higher, But Regulatory Concerns Linger

Blockchain4 days ago

This is how NFT mania pumped Litecoin, MATIC, and other alts

Uncategorized2 days ago

Bingbon Launches its Carbon Free and Afforestation Project

News4 days ago

Here’s What It Would Take for Shark Tank Investor Kevin O’Leary Says To Put More Capital Into Bitcoin and Crypto

Blockchain4 days ago

DeFiPie (PIE) Price Prediction 2021-2025: Will PIE Rise to $1 by the End of 2021?

Uncategorized3 days ago

How to fix the Party Member Preloading error in Apex Legends

Blockchain3 days ago Inks Deal with NFL Star to Advise on Financial Literacy Programs