Can i use a short term loss from Jan 2018 with a short term gain in December 2017? For Crypto Taxes.

Hello, i am doing cryptocurrency taxes for my first time and i have a question.

Example: I bought something on December 1st 2017 for $25,000. On December 10th 2017, i sell it for $50,000. So i have a $25,000 gain. Then i buy some more coins with the $50,000.

One month later in Jan 2018 i sell my coins for $25,000 for a $25,000 loss. Can i deduct that $25,000 loss from my December gain?

 It would really suck if i couldn't.

Thanks for reading.